mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03:00
Tests: llvm_rc_full_run failed when excluded from RunCMake_TEST_FILTER
This commit is contained in:
@@ -1230,16 +1230,6 @@ function(run_llvm_rc)
|
||||
endif()
|
||||
file(MAKE_DIRECTORY "${RunCMake_TEST_BINARY_DIR}/ExpandSourceDir")
|
||||
run_cmake_command(llvm_rc_full_run ${CMAKE_COMMAND} -E cmake_llvm_rc ${RunCMake_TEST_BINARY_DIR}/ExpandSourceDir/source_file test.tmp ${CMAKE_COMMAND} -E echo "This is a test" ++ ${LLVM_RC} -bad /FO SOURCE_DIR/llvmrc.result test.tmp )
|
||||
if(EXISTS ${RunCMake_TEST_BINARY_DIR}/ExpandSourceDir/test.tmp)
|
||||
message(SEND_ERROR "${test} - FAILED:\n"
|
||||
"test.tmp was not deleted")
|
||||
endif()
|
||||
file(READ ${RunCMake_TEST_BINARY_DIR}/ExpandSourceDir/llvmrc.result LLVMRC_RESULT)
|
||||
if(NOT "${LLVMRC_RESULT}" STREQUAL "This is a test\n")
|
||||
message(SEND_ERROR "${test} - FAILED:\n"
|
||||
"llvmrc.result was not created")
|
||||
endif()
|
||||
unset(LLVMRC_RESULT)
|
||||
endfunction()
|
||||
run_llvm_rc()
|
||||
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
if(EXISTS ${RunCMake_TEST_BINARY_DIR}/ExpandSourceDir/test.tmp)
|
||||
set(RunCMake_TEST_FAILED "test.tmp was not deleted")
|
||||
endif()
|
||||
file(READ ${RunCMake_TEST_BINARY_DIR}/ExpandSourceDir/llvmrc.result LLVMRC_RESULT)
|
||||
if(NOT "${LLVMRC_RESULT}" STREQUAL "This is a test\n")
|
||||
set(RunCMake_TEST_FAILED "llvmrc.result was not created")
|
||||
endif()
|
||||
unset(LLVMRC_RESULT)
|
||||
Reference in New Issue
Block a user