39cb05db47
- Removed ifdef from hipTestContext class
- Fix potential race condition in hipTest::launchRTCKernel()
- Improve documentation
- Move moduleUnloading to main() instead of explicitly calling it on every test
- Fix code formating
- Fix segmentation fault caused by using catch2 macro after catch2 is destroyed
[ROCm/hip-tests commit: a0296bd614]
17 řádky
433 B
C++
17 řádky
433 B
C++
#define CATCH_CONFIG_RUNNER
|
|
#include <hip_test_common.hh>
|
|
#include <iostream>
|
|
|
|
int main(int argc, char** argv) {
|
|
auto& context = TestContext::get(argc, argv);
|
|
if (context.skipTest()) {
|
|
// CTest uses this regex to figure out if the test has been skipped
|
|
std::cout << "HIP_SKIP_THIS_TEST" << std::endl;
|
|
return 0;
|
|
}
|
|
int out = Catch::Session().run(argc, argv);
|
|
TestContext::get().cleanContext();
|
|
return out;
|
|
|
|
}
|