summaryrefslogtreecommitdiff
path: root/Tests/CPackComponentsDEB/RunCPackVerifyResult-shlibdeps-with-private-lib-failure.cmake
diff options
context:
space:
mode:
authorwilliam.r.dieter <william.r.dieter@intel.com>2021-01-29 12:16:24 -0500
committerBrad King <brad.king@kitware.com>2021-02-01 10:32:51 -0500
commit1aefa86c31c10e2b735ba0bd531f2578c2361bec (patch)
tree9dbed66f92b413ffa67f21c409151603c6f8d250 /Tests/CPackComponentsDEB/RunCPackVerifyResult-shlibdeps-with-private-lib-failure.cmake
parentc5691f03e5626f30c432d325ab75117ad1e98bd8 (diff)
downloadcmake-1aefa86c31c10e2b735ba0bd531f2578c2361bec.tar.gz
Tests: Accept line breaks in more places in dpkg-shlibdeps error message
The RunCPackVerifyResult-shlibdeps-with-private-lib-failure test failed intermittently due to sometimes breaking lines in its output in different places. This change accepts line breaks in more places in the command output. Signed-off-by: william.r.dieter <william.r.dieter@intel.com>
Diffstat (limited to 'Tests/CPackComponentsDEB/RunCPackVerifyResult-shlibdeps-with-private-lib-failure.cmake')
-rw-r--r--Tests/CPackComponentsDEB/RunCPackVerifyResult-shlibdeps-with-private-lib-failure.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/CPackComponentsDEB/RunCPackVerifyResult-shlibdeps-with-private-lib-failure.cmake b/Tests/CPackComponentsDEB/RunCPackVerifyResult-shlibdeps-with-private-lib-failure.cmake
index 547852d779..962a1fb482 100644
--- a/Tests/CPackComponentsDEB/RunCPackVerifyResult-shlibdeps-with-private-lib-failure.cmake
+++ b/Tests/CPackComponentsDEB/RunCPackVerifyResult-shlibdeps-with-private-lib-failure.cmake
@@ -13,7 +13,7 @@ run_cpack(actual_output
CONFIG_ARGS ${config_args}
CONFIG_VERBOSE ${config_verbose})
-string(REGEX MATCH "dpkg-shlibdeps: error: (cannot|couldn't) find library\n[ \t]*libmyprivatelib.so.1 needed by ./usr/bin/mylibapp3" expected_error ${CPack_error})
+string(REGEX MATCH "dpkg-shlibdeps: error: (cannot|couldn't) find[ \n\t]+library[ \n\t]+libmyprivatelib.so.1[ \n\t]+needed[ \n\t]+by[ \n\t]+./usr/bin/mylibapp3" expected_error ${CPack_error})
if(NOT expected_error)
message(FATAL_ERROR "Did not get the expected error-message!")
endif()