SWDEV-295037 - Fix passed() in DTests

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

Change-Id: Ibaee0d85cb616727dc5db557bb9422702670b688
이 커밋은 다음에 포함됨:
Tao Sang 작성하고 Tao Sang가 2021-07-19 10:59:04 -04:00를 커밋함
1 부모 ab2b73ed7e
커밋 913003099c
9 파일이 변경됨
+12 -35

검색과 일치하는 파일 없음

+1 -2
파일 보기
@@ -130,8 +130,7 @@ class hipPerfMemFill {
int nGpu = 0;
HIPCHECK(hipGetDeviceCount(&nGpu));
if (nGpu < 1) {
cout << "Info: didn't find any GPU! skipping the test!\n";
passed();
failed("No GPU!");
} else if (deviceId >= nGpu) {
failed("Info: wrong GPU Id %d\n", deviceId);
}