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 authored and Tao Sang committed 2021-07-19 10:59:04 -04:00
1 rodič ab2b73ed7e
revize 913003099c
9 files changed
+12 -35

No files matched your search

+1 -3
Zobrazit soubor
@@ -54,9 +54,7 @@ void hipPerfStreamCreateCopyDestroy::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));