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
이 커밋은 다음에 포함됨:
1 부모
ee9831779c
커밋
e109ce541c
1 파일이 변경됨
+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;
|
||||
}
|
||||
|
||||
|
||||
새 이슈에서 참조
사용자 차단