summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-09-21 15:04:42 (GMT)
committerKitware Robot <kwrobot@kitware.com>2021-09-21 15:05:06 (GMT)
commitb0b689d5660f8f6d2a05bf070b2c72ddf3091b75 (patch)
treec3a9865ea36f2fc93fd251791bdb3c3aa891d08d /Tests
parent5fa9a65b1eb659462affe8b565d1da828a9d8f4a (diff)
parent0b4a56e64b52ac050e42192c635bd59527cd98b7 (diff)
downloadCMake-b0b689d5660f8f6d2a05bf070b2c72ddf3091b75.zip
CMake-b0b689d5660f8f6d2a05bf070b2c72ddf3091b75.tar.gz
CMake-b0b689d5660f8f6d2a05bf070b2c72ddf3091b75.tar.bz2
Merge topic 'cat_empty_file'
0b4a56e64b cmake: -E cat stops when an empty file is encountered Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !6539
Diffstat (limited to 'Tests')
-rw-r--r--Tests/RunCMake/CommandLine/RunCMakeTest.cmake3
1 files changed, 2 insertions, 1 deletions
diff --git a/Tests/RunCMake/CommandLine/RunCMakeTest.cmake b/Tests/RunCMake/CommandLine/RunCMakeTest.cmake
index cea5b1b..dc066f1 100644
--- a/Tests/RunCMake/CommandLine/RunCMakeTest.cmake
+++ b/Tests/RunCMake/CommandLine/RunCMakeTest.cmake
@@ -647,9 +647,10 @@ run_cmake_command(E_cat_directory
file(WRITE "${out}/first_file.txt" "first file to append\n")
file(WRITE "${out}/second_file.txt" "second file to append\n")
+file(WRITE "${out}/empty_file.txt" "")
file(WRITE "${out}/unicode_file.txt" "àéùç - 한국어") # Korean in Korean
run_cmake_command(E_cat_good_cat
- ${CMAKE_COMMAND} -E cat "${out}/first_file.txt" "${out}/second_file.txt" "${out}/unicode_file.txt")
+ ${CMAKE_COMMAND} -E cat "${out}/first_file.txt" "${out}/second_file.txt" "${out}/empty_file.txt" "${out}/unicode_file.txt")
unset(out)
run_cmake_command(E_cat_good_binary_cat