SWDEV-295037 - Fix passed() in DTests

passed() should not call exit(0) which will prevent object
destructor being called.

Change-Id: Ibaee0d85cb616727dc5db557bb9422702670b688
Tento commit je obsažen v:
Tao Sang
2021-07-13 23:39:01 -04:00
odevzdal Tao Sang
rodič 63586279ba
revize c74e2da333
12 změnil soubory, kde provedl 22 přidání a 45 odebrání
+1 -6
Zobrazit soubor
@@ -95,17 +95,12 @@ hipPerfDeviceConcurrency::hipPerfDeviceConcurrency() {}
hipPerfDeviceConcurrency::~hipPerfDeviceConcurrency() {}
void hipPerfDeviceConcurrency::open(void) {
int nGpu = 0;
HIPCHECK(hipGetDeviceCount(&nGpu));
setNumGpus(nGpu);
if (nGpu < 1) {
std::cout << "info: didn't find any GPU! skipping the test!\n";
passed();
failed("No GPU!");
}
}