SWDEV-295037 - Fix passed() in DTests

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

Change-Id: Ibaee0d85cb616727dc5db557bb9422702670b688
Cette révision appartient à :
Tao Sang
2021-07-13 23:39:01 -04:00
révisé par Tao Sang
Parent 63586279ba
révision c74e2da333
12 fichiers modifiés avec 22 ajouts et 45 suppressions
+1 -3
Voir le fichier
@@ -62,9 +62,7 @@ void hipPerfMemcpy::open(int deviceId) {
int nGpu = 0;
HIPCHECK(hipGetDeviceCount(&nGpu));
if (nGpu < 1) {
std::cout << "info: didn't find any GPU! skipping the test!\n";
passed();
return;
failed("No GPU!");
}
HIPCHECK(hipSetDevice(deviceId));