cmake/Tests/RunCMake/CTestResourceAllocation/ensure_parallel-ctest-s-res-check.cmake
2020-02-01 23:06:01 +01:00

17 lines
447 B
CMake

verify_ctest_resources()
set(expected_contents [[
begin Test1
alloc transmogrifiers calvin 2
begin Test2
alloc transmogrifiers hobbes 2
dealloc transmogrifiers calvin 2
end Test1
dealloc transmogrifiers hobbes 2
end Test2
]])
file(READ "${RunCMake_TEST_BINARY_DIR}/ctresalloc.log" actual_contents)
if(NOT actual_contents STREQUAL expected_contents)
string(APPEND RunCMake_TEST_FAILED "ctresalloc.log contents did not match expected\n")
endif()