catch2/tests
Martin Hořeňovský 4c8454b5ec
Fix potential infinite loops in generators combined with section filter
The problem was that under specific circumstances, namely that none
of their children progressed, `GeneratorTracker` will not progress.
This was changed recently, to allow for code like this, where a
`SECTION` follows a `GENERATE` at the same level:

```cpp
SECTION("A") {}
auto a = GENERATE(1, 2);
SECTION("B") {}
```

However, this interacted badly with `SECTION` filters (`-c foo`),
as they could deactivate all `SECTION`s below a generator, and thus
stop it from progressing forever. This commit makes GeneratorTracker
check whether there are any filters active, and if they are, it checks
whether its section-children can ever run.

Fixes #2025
2020-10-23 21:21:15 +02:00
..
ExtraTests Provide 1 .hpp + 1 .cpp distribution of Catch2 2020-09-09 13:02:50 +02:00
SelfTest Fix potential infinite loops in generators combined with section filter 2020-10-23 21:21:15 +02:00
TestScripts Fix how testRandomOrder.py builds tag arguments 2020-07-26 10:51:55 +02:00
CMakeLists.txt Fix potential infinite loops in generators combined with section filter 2020-10-23 21:21:15 +02:00