Files
CMake/Tests/RunCMake/WorkingDirectory/dirNotExist.cmake
Craig Scott a865f0beb2 Tests: Confirm test working dir set successfully
Specifically, this tests that setting WORKING_DIRECTORY
to an invalid directory results in the test failing.
2018-03-04 22:27:59 +11:00

7 lines
175 B
CMake

include(CTest)
add_test(NAME dirNotExist
COMMAND ${CMAKE_COMMAND} -E touch someFile.txt
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/thisDirWillNotExist
)