summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CommandLine/P_directory-stderr.txt
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-06-09 20:19:07 (GMT)
committerBrad King <brad.king@kitware.com>2014-06-09 20:21:11 (GMT)
commitb1c113d9a79c8ed78bffa63645a146593d19dadc (patch)
tree3eff31b885fd4b10adfa2667c89999bd522d6ffe /Tests/RunCMake/CommandLine/P_directory-stderr.txt
parent9e8fa1043ce9bfcffdcfa395f618dd7958ef4251 (diff)
downloadCMake-b1c113d9a79c8ed78bffa63645a146593d19dadc.zip
CMake-b1c113d9a79c8ed78bffa63645a146593d19dadc.tar.gz
CMake-b1c113d9a79c8ed78bffa63645a146593d19dadc.tar.bz2
cmake: Do not open directories as scripts (#14966)
Check if a file path is a directory before opening it. Extend the RunCMake.CommandLine test with a case running "cmake -P" on a directory.
Diffstat (limited to 'Tests/RunCMake/CommandLine/P_directory-stderr.txt')
-rw-r--r--Tests/RunCMake/CommandLine/P_directory-stderr.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/Tests/RunCMake/CommandLine/P_directory-stderr.txt b/Tests/RunCMake/CommandLine/P_directory-stderr.txt
new file mode 100644
index 0000000..b8319a1
--- /dev/null
+++ b/Tests/RunCMake/CommandLine/P_directory-stderr.txt
@@ -0,0 +1 @@
+^CMake Error: Error processing file: .*/Tests/RunCMake/CommandLine$