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]
이 커밋은 다음에 포함됨:
Tao Sang
2021-07-13 23:39:01 -04:00
커밋한 사람 Tao Sang
부모 65dbac4ec0
커밋 f985ba8b26
12개의 변경된 파일과 22개의 추가작업 그리고 45개의 파일을 삭제
+1 -3
파일 보기
@@ -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));