2
0

SWDEV-295037 - Fix passed() in DTests

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

Change-Id: Ibaee0d85cb616727dc5db557bb9422702670b688
Este cometimento está contido em:
Tao Sang
2021-07-13 23:39:01 -04:00
cometido por Tao Sang
ascendente ab2b73ed7e
cometimento 913003099c
9 ficheiros modificados com 12 adições e 35 eliminações
+1 -3
Ver ficheiro
@@ -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));