diff options
author | Raffi Enficiaud <raffi.enficiaud@mines-paris.org> | 2015-09-11 15:31:01 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-09-17 19:30:38 (GMT) |
commit | 4f2ff6019bbc94fd6a875699dd812f2819131dab (patch) | |
tree | 9c355e9cac3053fa1a744b6d4ca287fc8e3eb1c7 /Tests/RunCMake/CPack/VerifyResult.cmake | |
parent | 81b748ae1d57dacc9db98e74b23c9215f29b09ac (diff) | |
download | CMake-4f2ff6019bbc94fd6a875699dd812f2819131dab.zip CMake-4f2ff6019bbc94fd6a875699dd812f2819131dab.tar.gz CMake-4f2ff6019bbc94fd6a875699dd812f2819131dab.tar.bz2 |
Tests: Make RunCMake.CPack error messages more readable
Diffstat (limited to 'Tests/RunCMake/CPack/VerifyResult.cmake')
-rw-r--r-- | Tests/RunCMake/CPack/VerifyResult.cmake | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Tests/RunCMake/CPack/VerifyResult.cmake b/Tests/RunCMake/CPack/VerifyResult.cmake index 96efa9e..6eab531 100644 --- a/Tests/RunCMake/CPack/VerifyResult.cmake +++ b/Tests/RunCMake/CPack/VerifyResult.cmake @@ -28,8 +28,9 @@ if(NOT EXPECTED_FILES_COUNT EQUAL 0) if(NOT expected_content_list) message(FATAL_ERROR - "Unexpected file content for file No. '${file_no_}'!" - " Content: '${PACKAGE_CONTENT}'" + "Unexpected file content for file No. '${file_no_}'!\n" + " Content: '${PACKAGE_CONTENT}'\n\n" + " Expected: '${EXPECTED_FILE_CONTENT_${file_no_}}'" "${output_error_message}") endif() else() @@ -56,7 +57,7 @@ if(NOT EXPECTED_FILES_COUNT EQUAL 0) "${output_error_message}") endif() - # sanity check that we didn't accidentaly list wrong files with our regular + # sanity check that we didn't accidentally list wrong files with our regular # expressions foreach(expected_ IN LISTS allFoundFiles_) list(FIND foundFiles_ "${expected_}" found_) |