diff options
author | Craig Scott <craig.scott@crascit.com> | 2018-03-04 07:59:04 (GMT) |
---|---|---|
committer | Craig Scott <craig.scott@crascit.com> | 2018-03-04 11:27:59 (GMT) |
commit | a865f0beb2e9f8d92e021855c773ab90eaf24581 (patch) | |
tree | 711814282871d976767ca2cafdc97342db5990f1 /Tests/RunCMake/WorkingDirectory/dirNotExist.cmake | |
parent | 0e362b23e10e0d2b6c3726a94f42ac603304f63a (diff) | |
download | CMake-a865f0beb2e9f8d92e021855c773ab90eaf24581.zip CMake-a865f0beb2e9f8d92e021855c773ab90eaf24581.tar.gz CMake-a865f0beb2e9f8d92e021855c773ab90eaf24581.tar.bz2 |
Tests: Confirm test working dir set successfully
Specifically, this tests that setting WORKING_DIRECTORY
to an invalid directory results in the test failing.
Diffstat (limited to 'Tests/RunCMake/WorkingDirectory/dirNotExist.cmake')
-rw-r--r-- | Tests/RunCMake/WorkingDirectory/dirNotExist.cmake | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Tests/RunCMake/WorkingDirectory/dirNotExist.cmake b/Tests/RunCMake/WorkingDirectory/dirNotExist.cmake new file mode 100644 index 0000000..642386e --- /dev/null +++ b/Tests/RunCMake/WorkingDirectory/dirNotExist.cmake @@ -0,0 +1,6 @@ +include(CTest) + +add_test(NAME dirNotExist + COMMAND ${CMAKE_COMMAND} -E touch someFile.txt + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/thisDirWillNotExist +) |