Tests: llvm_rc_full_run failed when excluded from RunCMake_TEST_FILTER

This commit is contained in:
AJIOB
2026-07-14 12:53:51 +03:00
parent 430711d1a5
commit 9599d1b8d3
2 changed files with 8 additions and 10 deletions
@@ -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)