mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-06 14:19:59 -05:00
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>
This commit is contained in:
committed by
Brad King
parent
c5691f03e5
commit
1aefa86c31
+1
-1
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user