SWDEV-295037 - Fix passed() in DTests

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

Change-Id: Ibaee0d85cb616727dc5db557bb9422702670b688
Этот коммит содержится в:
Tao Sang
2021-07-13 23:39:01 -04:00
коммит произвёл Tao Sang
родитель 63586279ba
Коммит c74e2da333
12 изменённых файлов: 22 добавлений и 45 удалений
+2 -4
Просмотреть файл
@@ -128,10 +128,8 @@ void hipPerfSampleRate::open(void) {
int nGpu = 0;
HIPCHECK(hipGetDeviceCount(&nGpu));
if (nGpu < 1) {
std::cout << "info: didn't find any GPU! skipping the test!\n";
passed();
return;
if (nGpu < 1) {
failed("No GPU!");
}
int deviceId = 0;