Tests: RunCMake.find_program (IgnorePrefixPath) test fails
Packaging 3.23.0-rc2 for Gentoo Linux and hit only this test failure. (Note that 3.22.3 passes everything except for one (different) failure: #23299 (closed).)
Snippet from build log:
432/635 Test #463: RunCMake.find_program .............................***Failed 0.69 sec
-- EnvAndHints - PASSED
-- DirsPerName - PASSED
-- NamesPerDir - PASSED
-- RelAndAbsPath - PASSED
-- Required - PASSED
-- NO_CACHE - PASSED
CMake Error at /var/tmp/portage/dev-util/cmake-3.23.0_rc2/work/cmake-3.23.0-rc2/Tests/RunCMake/RunCMake.cmake:212 (message):
IgnorePrefixPath - FAILED:
Result is [1], not [0].
stderr does not match that expected.
Command was:
command> "/var/tmp/portage/dev-util/cmake-3.23.0_rc2/work/cmake-3.23.0-rc2_build/bin/cmake" "/var/tmp/portage/dev-util/cmake-3.23.0_rc2/work/cmake-3.23.0-rc2/Tests/RunCMake/find_program" "-G" "Ninja" "-DRunCMake_TEST=IgnorePrefixPath" "--no-warn-unused-cli" "-DCMAKE_MAKE_PROGRAM=/usr/bin/ninja"
Actual stdout:
actual-out> Not searching for unused variables given on the command line.
actual-out> -- Configuring incomplete, errors occurred!
actual-out> See also "/var/tmp/portage/dev-util/cmake-3.23.0_rc2/work/cmake-3.23.0-rc2_build/Tests/RunCMake/find_program/IgnorePrefixPath-build/CMakeFiles/CMakeOutput.log".
Expected stderr to match:
expect-err> ^$
Actual stderr:
actual-err> CMake Error at IgnorePrefixPath.cmake:3 (message):
actual-err> Expected value of prog2:
actual-err>
actual-err> prog2-NOTFOUND
actual-err>
actual-err> Actual value:
actual-err>
actual-err> /var/tmp/portage/dev-util/cmake-3.23.0_rc2/work/cmake-3.23.0-rc2/Tests/RunCMake/find_program/Prefix/bin/prog
actual-err> Call Stack (most recent call first):
actual-err> IgnorePrefixPath.cmake:30 (assert_eq)
actual-err> CMakeLists.txt:3 (include)
Call Stack (most recent call first):
/var/tmp/portage/dev-util/cmake-3.23.0_rc2/work/cmake-3.23.0-rc2/Tests/RunCMake/find_program/RunCMakeTest.cmake:9 (run_cmake)
-- CMP0109-WARN - PASSED
-- CMP0109-OLD - PASSED
-- CMP0109-NEW - PASSED
-- EnvAndHintsDebugVar - PASSED
This test looks like it was added in 201d8c42. I don't have a prog or prog2 on my PATH
.
Full build.log: build.log
Edited by Brad King