Don't check the random number generator state at the end

This commit is contained in:
Daniel Smith 2021-07-08 19:19:02 -04:00
parent 3fbd6b6143
commit acfd0b6c1c
2 changed files with 5 additions and 0 deletions

View File

@ -36,6 +36,8 @@ struct ThreadNameReceiver : IThreadPoolReceiver {
};
TEST_CASE("/flow/IThreadPool/NamedThread") {
noUnseed = true;
state Reference<IThreadPool> pool = createGenericThreadPool();
pool->addThread(new ThreadNameReceiver(), "thread-foo");

View File

@ -99,6 +99,9 @@ struct UnitTestCollection {
extern UnitTestCollection g_unittests;
// Set this to `true` to disable RNG state checking after simulation runs.
extern bool noUnseed;
#define APPEND(a, b) a##b
// FILE_UNIQUE_NAME(basename) expands to a name like basename456 if on line 456