llvm-project
e1468558 - [OpenMP][omptest] Enforce test case order for 'standalone' build (#154977)

Commit
41 days ago
[OpenMP][omptest] Enforce test case order for 'standalone' build (#154977) Note: this only applies to 'standalone' builds, i.e. when: LIBOMPTEST_BUILD_STANDALONE evaluates to 'ON'. Use std::vector<std::pair<std::string, TestSuite>> instead of a std::map. Background: In some cases it could happen that the test execution order would change vs. the order of appearance. This can lead to suite failures when e.g. testing for device initialization because it is performed by the first executed test case. By storing the test suites and cases in order of appearance this issue is avoided. (So far GoogleTest has behaved in the same way.)
Author
Parents
Loading