SWDEV-295037 - Fix passed() in DTests

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

Change-Id: Ibaee0d85cb616727dc5db557bb9422702670b688


[ROCm/hip commit: c74e2da333]
Bu işleme şunda yer alıyor:
Tao Sang
2021-07-13 23:39:01 -04:00
işlemeyi yapan: Tao Sang
ebeveyn 65dbac4ec0
işleme f985ba8b26
12 değiştirilmiş dosya ile 22 ekleme ve 45 silme
+2 -4
Dosyayı Görüntüle
@@ -18,7 +18,7 @@
*/
/* HIT_START
* BUILD: %t %s ../../src/test_common.cpp EXCLUDE_HIP_PLATFORM nvcc
* BUILD: %t %s ../../src/test_common.cpp EXCLUDE_HIP_PLATFORM nvidia
* TEST: %t
* HIT_END
*/
@@ -110,9 +110,7 @@ void hipPerfMemset::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));