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]
This commit is contained in:
@@ -275,9 +275,7 @@ void spawnProc(int deviceCount, const std::vector<char>& buffer) {
|
||||
TestPassed &= testhipModuleLoadUnloadFunc(buffer);
|
||||
}
|
||||
#endif
|
||||
if (TestPassed) {
|
||||
passed();
|
||||
} else {
|
||||
if (!TestPassed) {
|
||||
failed("hipMallocChild_Concurrency_MultiGpu Failed!");
|
||||
}
|
||||
}
|
||||
@@ -309,4 +307,5 @@ int main(int argc, char* argv[]) {
|
||||
globTestID = 3;
|
||||
spawnProc(numDevices, buffer);
|
||||
}
|
||||
passed();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user