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
Этот коммит содержится в:
Kent Russell
2019-04-23 07:11:12 -04:00
родитель ee9831779c
Коммит e109ce541c
+2
Просмотреть файл
@@ -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;
}