SWDEV-295037 - Fix passed() in DTests

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

Change-Id: Ibaee0d85cb616727dc5db557bb9422702670b688
Αυτή η υποβολή περιλαμβάνεται σε:
Tao Sang
2021-07-13 23:39:01 -04:00
υποβλήθηκε από Tao Sang
γονέας 63586279ba
υποβολή c74e2da333
12 αρχεία άλλαξαν με 22 προσθήκες και 45 διαγραφές
@@ -130,8 +130,7 @@ class hipPerfMemFill {
int nGpu = 0;
HIPCHECK(hipGetDeviceCount(&nGpu));
if (nGpu < 1) {
cout << "Info: didn't find any GPU! skipping the test!\n";
passed();
failed("No GPU!");
} else if (deviceId >= nGpu) {
failed("Info: wrong GPU Id %d\n", deviceId);
}