SWDEV-295037 - Fix passed() in DTests
passed() should not call exit(0) which will prevent object destructor being called. Change-Id: Ibaee0d85cb616727dc5db557bb9422702670b688
This commit is contained in:
@@ -238,9 +238,7 @@ int main(int argc, char* argv[]) {
|
||||
HIPCHECK(hipGetDeviceCount(&nGpu));
|
||||
|
||||
if (nGpu < 1) {
|
||||
std::cout << "info: didn't find any GPU! skipping the test!\n";
|
||||
passed();
|
||||
return 0;
|
||||
failed("No GPU!");
|
||||
}
|
||||
hipDeviceProp_t props = {0};
|
||||
props = {0};
|
||||
@@ -379,6 +377,6 @@ int main(int argc, char* argv[]) {
|
||||
HIPCHECK(hipFree(workspace));
|
||||
|
||||
}
|
||||
|
||||
passed();
|
||||
return 0;
|
||||
}
|
||||
|
||||
Fai riferimento in un nuovo problema
Block a user