MIOpen icon indicating copy to clipboard operation
MIOpen copied to clipboard

Add base class for gtests

Open CAHEK7 opened this issue 1 year ago • 0 comments

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).

CAHEK7 avatar Jul 23 '24 16:07 CAHEK7