2
0

Fix test if Render Node can't be found

If a Render Node can't be found, we should finish off all child
processes immediately, then return.

Trying to do the check before forking the children results in the test
failing as well, regardless of the status of finding the render node,
which is likely why the forking occurred first in the test's initial
creation. This way we ensure that things finish cleanly before moving to
the next test


Change-Id: I2e1b62fed25c30ff1f179612127c23960da4ee5e


[ROCm/ROCR-Runtime commit: e109ce541c]
Este cometimento está contido em:
Kent Russell
2019-04-23 07:11:12 -04:00
ascendente 87d0f4246b
cometimento 56bbd862e6
+2
Ver ficheiro
@@ -341,6 +341,7 @@ TEST_F(KFDEvictTest, BasicTest) {
int rn = FindDRMRenderNode(defaultGPUNode);
if (rn < 0) {
LOG() << "Skipping test: Could not find render node for default GPU." << std::endl;
WaitChildProcesses();
return;
}
@@ -551,6 +552,7 @@ TEST_F(KFDEvictTest, QueueTest) {
int rn = FindDRMRenderNode(defaultGPUNode);
if (rn < 0) {
LOG() << "Skipping test: Could not find render node for default GPU." << std::endl;
WaitChildProcesses();
return;
}