diff options
author | Eicke Herbertz <wolletd@posteo.de> | 2020-10-29 18:10:08 (GMT) |
---|---|---|
committer | Eicke Herbertz <wolletd@posteo.de> | 2020-10-29 18:52:54 (GMT) |
commit | 8c42cfb2e87c97cbf52eef67f45af0206f0a923e (patch) | |
tree | 4a1ec19a56f238f2a941fd4791fd14d5cf8e4a99 /Tests | |
parent | 32d369aa7049c4921d3c35ca8097bc0485866be6 (diff) | |
download | CMake-8c42cfb2e87c97cbf52eef67f45af0206f0a923e.zip CMake-8c42cfb2e87c97cbf52eef67f45af0206f0a923e.tar.gz CMake-8c42cfb2e87c97cbf52eef67f45af0206f0a923e.tar.bz2 |
test/CMakeLib: make testUVProcessChain work with qemu
When building and testing CMake in a container with qemu
user mode emulation, the expected termination with std::abort()
in testUVProcessChainHelper leads qemu to emit an additional
message about an uncaught signal. There appears to be no way
to make qemu shut up, so any qemu message will be removed
from the output during validation.
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/CMakeLib/testUVProcessChain.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Tests/CMakeLib/testUVProcessChain.cxx b/Tests/CMakeLib/testUVProcessChain.cxx index 61a77cf..a003205 100644 --- a/Tests/CMakeLib/testUVProcessChain.cxx +++ b/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) { |