Skip to content

Commit 5f66f2b

Browse files
committed
Don't pass --rng-seed in catch_discover_tests
Somehow it took me *that* long to remember that catch_discover_tests is used to run one test per execution of the test executable with ctest, which makes seeding the PRNG for the test run order useless.
1 parent 4244d1e commit 5f66f2b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/CMakeLists.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -305,8 +305,7 @@ endif()
305305

306306
include(CTest)
307307

308-
string(RANDOM LENGTH 6 ALPHABET 123456789 RNG_SEED)
309-
catch_discover_tests(main-tests EXTRA_ARGS --rng-seed ${RNG_SEED})
308+
catch_discover_tests(main-tests)
310309
if (NOT "${CPPSORT_SANITIZE}" MATCHES "address|memory")
311-
catch_discover_tests(heap-memory-exhaustion-tests EXTRA_ARGS --rng-seed ${RNG_SEED})
310+
catch_discover_tests(heap-memory-exhaustion-tests)
312311
endif()

0 commit comments

Comments
 (0)