Преглед изворни кода

Merge topic 'fix-test-for-qemu'

8c42cfb2e8 test/CMakeLib: make testUVProcessChain work with qemu

Acked-by: Kitware Robot <[email protected]>
Merge-request: !5442
Kyle Edwards пре 5 година
родитељ
комит
89310efa4a
1 измењених фајлова са 4 додато и 0 уклоњено
  1. 4 0
      Tests/CMakeLib/testUVProcessChain.cxx

+ 4 - 0
Tests/CMakeLib/testUVProcessChain.cxx

@@ -181,6 +181,10 @@ bool checkOutput(std::istream& outputStream, std::istream& errorStream)
   }
 
   std::string error = getInput(errorStream);
+  auto qemu_error_pos = error.find("qemu:");
+  if (qemu_error_pos != std::string::npos) {
+    error.resize(qemu_error_pos);
+  }
   if (error.length() != 3 || error.find('1') == std::string::npos ||
       error.find('2') == std::string::npos ||
       error.find('3') == std::string::npos) {