Allow to specify a random seed independently of whether shuffling is requested
This commit fixes issue #3681 Signed-off-by: Ayush Joshi <ayush854032@gmail.com>
This commit is contained in:
parent
d61d4d8e64
commit
3ea587050d
@ -5835,9 +5835,7 @@ bool UnitTestImpl::RunAllTests() {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
random_seed_ = GTEST_FLAG_GET(shuffle)
|
random_seed_ = GetRandomSeedFromFlag(GTEST_FLAG_GET(random_seed));
|
||||||
? GetRandomSeedFromFlag(GTEST_FLAG_GET(random_seed))
|
|
||||||
: 0;
|
|
||||||
|
|
||||||
// True if and only if at least one test has failed.
|
// True if and only if at least one test has failed.
|
||||||
bool failed = false;
|
bool failed = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user