You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Gtests are using random generator and setting internal library state based on environmental variables. It may work for a case single binary-single test, but will not work for a single binary-all the tests case since the tests will interfere each other and the behavior will be heavily dependent on the test order.
We need a base class for gtests, which will cover resetting prng at the beginning of the tests (trivial, by adding prng::reset_seed(); in the constructor) and handling consistent environmental variable state but saving and restoring full state of the updated env variables (including isSet/isUset state).
The text was updated successfully, but these errors were encountered:
Gtests are using random generator and setting internal library state based on environmental variables. It may work for a case
single binary-single test
, but will not work for asingle binary-all the tests
case since the tests will interfere each other and the behavior will be heavily dependent on the test order.We need a base class for gtests, which will cover resetting prng at the beginning of the tests (trivial, by adding
prng::reset_seed();
in the constructor) and handling consistent environmental variable state but saving and restoring full state of the updated env variables (includingisSet
/isUset
state).The text was updated successfully, but these errors were encountered: