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]
Este cometimento está contido em:
1 ascendente
65dbac4ec0
cometimento
f985ba8b26
12 ficheiros modificados
+22
-45
Não existem ficheiros que correspondam à sua pesquisa
@@ -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;
|
||||
|
||||
Criar uma nova questão referindo esta
Bloquear um utilizador