SWDEV-295037 - Fix passed() in DTests

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

Change-Id: Ibaee0d85cb616727dc5db557bb9422702670b688
此提交包含在:
Tao Sang authored and Tao Sang committed 2021-07-19 10:59:04 -04:00
1 父節點 63586279ba
當前提交 c74e2da333
12 file changed
+22 -45

No files matched your search

+1 -3
查看文件
@@ -403,9 +403,7 @@ void hipPerfMandelBrot::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!");
}