diff options
author | Brad King <brad.king@kitware.com> | 2023-01-24 20:25:10 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-01-24 20:25:10 (GMT) |
commit | 7db4df2e8cadc8caa5603b89e7fc2b758d176586 (patch) | |
tree | 367add4010a7f8176725f65f442fdee72c8acf95 /Tests/RunCMake/try_run | |
parent | 62483b9b99647bcec8275d7b139a64e879623fcc (diff) | |
download | CMake-7db4df2e8cadc8caa5603b89e7fc2b758d176586.zip CMake-7db4df2e8cadc8caa5603b89e7fc2b758d176586.tar.gz CMake-7db4df2e8cadc8caa5603b89e7fc2b758d176586.tar.bz2 |
Tests: Match configure log try_compile directories more precisely
Do not accept a double-quote in the `try_compile` work directory to
ensure we do not match more than the field value.
Diffstat (limited to 'Tests/RunCMake/try_run')
-rw-r--r-- | Tests/RunCMake/try_run/ConfigureLog-config.txt | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/Tests/RunCMake/try_run/ConfigureLog-config.txt b/Tests/RunCMake/try_run/ConfigureLog-config.txt index bf3c3bd..a68472c 100644 --- a/Tests/RunCMake/try_run/ConfigureLog-config.txt +++ b/Tests/RunCMake/try_run/ConfigureLog-config.txt @@ -17,8 +17,8 @@ events:( checks: - "Detecting C compiler ABI info" directories: - source: "[^"]*/Tests/RunCMake/try_run/ConfigureLog-build/CMakeFiles/CMakeScratch/TryCompile-[^/]+" - binary: "[^"]*/Tests/RunCMake/try_run/ConfigureLog-build/CMakeFiles/CMakeScratch/TryCompile-[^/]+" + source: "[^"]*/Tests/RunCMake/try_run/ConfigureLog-build/CMakeFiles/CMakeScratch/TryCompile-[^/"]+" + binary: "[^"]*/Tests/RunCMake/try_run/ConfigureLog-build/CMakeFiles/CMakeScratch/TryCompile-[^/"]+" buildResult: variable: "CMAKE_C_ABI_COMPILED" cached: true @@ -38,8 +38,8 @@ events:( - "CMakeLists.txt:[0-9]+ \(include\)" description: "Source that should not compile\." directories: - source: "[^"]*/Tests/RunCMake/try_run/ConfigureLog-build/CMakeFiles/CMakeScratch/TryCompile-[^/]+" - binary: "[^"]*/Tests/RunCMake/try_run/ConfigureLog-build/CMakeFiles/CMakeScratch/TryCompile-[^/]+" + source: "[^"]*/Tests/RunCMake/try_run/ConfigureLog-build/CMakeFiles/CMakeScratch/TryCompile-[^/"]+" + binary: "[^"]*/Tests/RunCMake/try_run/ConfigureLog-build/CMakeFiles/CMakeScratch/TryCompile-[^/"]+" buildResult: variable: "COMPILE_RESULT" cached: true @@ -57,8 +57,8 @@ events:( - "Check 1" description: "Source that should compile\." directories: - source: "[^"]*/Tests/RunCMake/try_run/ConfigureLog-build/CMakeFiles/CMakeScratch/TryCompile-[^/]+" - binary: "[^"]*/Tests/RunCMake/try_run/ConfigureLog-build/CMakeFiles/CMakeScratch/TryCompile-[^/]+" + source: "[^"]*/Tests/RunCMake/try_run/ConfigureLog-build/CMakeFiles/CMakeScratch/TryCompile-[^/"]+" + binary: "[^"]*/Tests/RunCMake/try_run/ConfigureLog-build/CMakeFiles/CMakeScratch/TryCompile-[^/"]+" buildResult: variable: "COMPILE_RESULT" cached: true @@ -81,8 +81,8 @@ events:( - "Check 2" - "Check 1" directories: - source: "[^"]*/Tests/RunCMake/try_run/ConfigureLog-build/CMakeFiles/CMakeScratch/TryCompile-[^/]+" - binary: "[^"]*/Tests/RunCMake/try_run/ConfigureLog-build/CMakeFiles/CMakeScratch/TryCompile-[^/]+" + source: "[^"]*/Tests/RunCMake/try_run/ConfigureLog-build/CMakeFiles/CMakeScratch/TryCompile-[^/"]+" + binary: "[^"]*/Tests/RunCMake/try_run/ConfigureLog-build/CMakeFiles/CMakeScratch/TryCompile-[^/"]+" buildResult: variable: "COMPILE_RESULT" cached: true @@ -101,8 +101,8 @@ events:( - "ConfigureLog.cmake:[0-9]+ \(try_run\)" - "CMakeLists.txt:[0-9]+ \(include\)" directories: - source: "[^"]*/Tests/RunCMake/try_run/ConfigureLog-build/CMakeFiles/CMakeScratch/TryCompile-[^/]+" - binary: "[^"]*/Tests/RunCMake/try_run/ConfigureLog-build/CMakeFiles/CMakeScratch/TryCompile-[^/]+" + source: "[^"]*/Tests/RunCMake/try_run/ConfigureLog-build/CMakeFiles/CMakeScratch/TryCompile-[^/"]+" + binary: "[^"]*/Tests/RunCMake/try_run/ConfigureLog-build/CMakeFiles/CMakeScratch/TryCompile-[^/"]+" buildResult: variable: "COMPILE_RESULT" cached: true |