mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-08 23:29:55 -05:00
Tests: Fix RunCMake.CMakePresetsBuild failure message order
The actual and expected content were switched.
This commit is contained in:
committed by
Brad King
parent
d5d02f80c0
commit
899172109a
@@ -5,8 +5,8 @@ function(test_environment_variable name expected_value)
|
||||
else()
|
||||
set(actual_value "${CMAKE_MATCH_1}")
|
||||
if(NOT "${actual_value}" MATCHES "${expected_value}")
|
||||
string(REPLACE "\n" "\n " _actual "${expected_value}")
|
||||
string(REPLACE "\n" "\n " _expect "${actual_value}")
|
||||
string(REPLACE "\n" "\n " _actual "${actual_value}")
|
||||
string(REPLACE "\n" "\n " _expect "${expected_value}")
|
||||
string(APPEND RunCMake_TEST_FAILED "Expected value of environment variable '${name}':\n ${_expect}\nActual value:\n ${_actual}\n")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user