Test that missing source mentions directory (#11677)
Teach the MissingSourceFile test to verify that the directory portion of a missing source file is mentioned in the error message.
This commit is contained in:
parent
9cefce09f6
commit
7af41c3492
|
@ -149,7 +149,7 @@ IF(BUILD_TESTING)
|
||||||
ADD_TEST_MACRO(PreOrder PreOrder)
|
ADD_TEST_MACRO(PreOrder PreOrder)
|
||||||
ADD_TEST_MACRO(MissingSourceFile MissingSourceFile)
|
ADD_TEST_MACRO(MissingSourceFile MissingSourceFile)
|
||||||
SET_TESTS_PROPERTIES(MissingSourceFile PROPERTIES
|
SET_TESTS_PROPERTIES(MissingSourceFile PROPERTIES
|
||||||
PASS_REGULAR_EXPRESSION "CMake Error at CMakeLists.txt:3 \\(add_executable\\):[ \r\n]*Cannot find source file \"MissingSourceFile.c\"")
|
PASS_REGULAR_EXPRESSION "CMake Error at CMakeLists.txt:3 \\(add_executable\\):[ \r\n]*Cannot find source file:[ \r\n]*DoesNotExist/MissingSourceFile.c")
|
||||||
ADD_TEST_MACRO(COnly COnly)
|
ADD_TEST_MACRO(COnly COnly)
|
||||||
ADD_TEST_MACRO(CxxOnly CxxOnly)
|
ADD_TEST_MACRO(CxxOnly CxxOnly)
|
||||||
ADD_TEST_MACRO(IPO COnly/COnly)
|
ADD_TEST_MACRO(IPO COnly/COnly)
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
cmake_minimum_required(VERSION 2.8)
|
cmake_minimum_required(VERSION 2.8)
|
||||||
project(MissingSourceFile C)
|
project(MissingSourceFile C)
|
||||||
add_executable(MissingSourceFile MissingSourceFile.c)
|
add_executable(MissingSourceFile DoesNotExist/MissingSourceFile.c)
|
||||||
|
|
Loading…
Reference in New Issue