Commit 3ea58705 authored by Ayush Joshi's avatar Ayush Joshi
Browse files

Allow to specify a random seed independently of whether shuffling is requested



This commit fixes issue #3681
Signed-off-by: default avatarAyush Joshi <ayush854032@gmail.com>
parent d61d4d8e
...@@ -5835,9 +5835,7 @@ bool UnitTestImpl::RunAllTests() { ...@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment