summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/file/MAKE_DIRECTORY-fail-stderr.txt
diff options
context:
space:
mode:
authorTerence Noone <me@techtricity.net>2022-12-08 00:48:22 (GMT)
committerBrad King <brad.king@kitware.com>2022-12-08 12:54:55 (GMT)
commitefae1ab68badef66505363505aecce7a7c3dbe6a (patch)
treea4f6f16a522711121165408a6270dc05c68dd1b7 /Tests/RunCMake/file/MAKE_DIRECTORY-fail-stderr.txt
parent127fa54808acd80b658409758533c2522f6a1c19 (diff)
downloadCMake-efae1ab68badef66505363505aecce7a7c3dbe6a.zip
CMake-efae1ab68badef66505363505aecce7a7c3dbe6a.tar.gz
CMake-efae1ab68badef66505363505aecce7a7c3dbe6a.tar.bz2
file(MAKE_DIRECTORY): Provide a more descriptive error message
Previously, MAKE_DIRECTORY would print `problem creating directory: {}`, which was very unhelpful for debugging. Extend the message with the OS error string.
Diffstat (limited to 'Tests/RunCMake/file/MAKE_DIRECTORY-fail-stderr.txt')
-rw-r--r--Tests/RunCMake/file/MAKE_DIRECTORY-fail-stderr.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/Tests/RunCMake/file/MAKE_DIRECTORY-fail-stderr.txt b/Tests/RunCMake/file/MAKE_DIRECTORY-fail-stderr.txt
new file mode 100644
index 0000000..95fccdf
--- /dev/null
+++ b/Tests/RunCMake/file/MAKE_DIRECTORY-fail-stderr.txt
@@ -0,0 +1,9 @@
+^CMake Error at [^
+]*/MAKE_DIRECTORY-fail.cmake:[0-9]+ \(file\):
+ file failed to create directory:
+
+ [^
+]*/Tests/RunCMake/file/MAKE_DIRECTORY-fail-build/file/directory
+
+ because: [^
+]+$