diff options
author | Brad King <brad.king@kitware.com> | 2014-06-09 20:19:07 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-06-09 20:21:11 (GMT) |
commit | b1c113d9a79c8ed78bffa63645a146593d19dadc (patch) | |
tree | 3eff31b885fd4b10adfa2667c89999bd522d6ffe /Tests/RunCMake/CommandLine/P_directory-stderr.txt | |
parent | 9e8fa1043ce9bfcffdcfa395f618dd7958ef4251 (diff) | |
download | CMake-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.txt | 1 |
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$ |