ctest testsuite failiures with gcc12 on cmake 3.22.1
When building ctest on openSUSE Tumbleweed with the new gcc12 the test suite fails as below. The full build log is at [1] the only difference between this build and our standard builds should be GCC12, you can see the spec file and any other info used to build cmake at [2] this bug was originally reported in the openSUSE bugtracker as [3]
- https://build.opensuse.org/package/live_build_log/openSUSE:Factory:Staging:Gcc7/cmake:full/standard/x86_64
- https://build.opensuse.org/package/show/openSUSE:Factory:Staging:Gcc7/cmake:full
- https://bugzilla.suse.com/show_bug.cgi?id=1194815
[ 1481s] 255/583 Test #268: CMakeLib.testCTestResourceAllocator ...............***Failed 0.02 sec
[ 1481s] GetResources() did not return expected value
[ 1481s] in testInitializeFromResourceSpec()
[ 1481s] GetResources() did not return expected value
[ 1481s] GetResources() did not return expected value
[ 1481s] AllocateResource("gpus", "0", 1) returned true, should be false
[ 1481s] GetResources() did not return expected value
[ 1481s] AllocateResource("gpus", "1", 7) returned false, should be true
[ 1481s] GetResources() did not return expected value
[ 1481s] AllocateResource("gpus", "2", 1) returned true, should be false
[ 1481s] GetResources() did not return expected value
[ 1481s] GetResources() did not return expected value
[ 1481s] GetResources() did not return expected value
[ 1481s] in testAllocateResource()
[ 1481s] GetResources() did not return expected value
[ 1481s] GetResources() did not return expected value
[ 1481s] GetResources() did not return expected value
[ 1481s] GetResources() did not return expected value
[ 1481s] GetResources() did not return expected value
[ 1481s] GetResources() did not return expected value
[ 1481s] in testDeallocateResource()
[ 1481s] Start 269: CMakeLib.testCTestResourceSpec
[ 1481s] 256/583 Test #269: CMakeLib.testCTestResourceSpec ....................***Failed 0.03 sec
[ 1481s] ReadFromJSONFile("/home/abuild/rpmbuild/BUILD/cmake-3.22.1/Tests/CMakeLib/testCTestResourceSpec_data/spec1.json") returned "OK", should be "JSON parse error"
[ 1481s] ReadFromJSONFile("/home/abuild/rpmbuild/BUILD/cmake-3.22.1/Tests/CMakeLib/testCTestResourceSpec_data/spec3.json") returned "Invalid socket object", should be "OK"
[ 1481s] ReadFromJSONFile("/home/abuild/rpmbuild/BUILD/cmake-3.22.1/Tests/CMakeLib/testCTestResourceSpec_data/spec4.json") returned "Invalid socket object", should be "OK"
[ 1481s] ReadFromJSONFile("/home/abuild/rpmbuild/BUILD/cmake-3.22.1/Tests/CMakeLib/testCTestResourceSpec_data/spec5.json") returned "Invalid socket object", should be "Unknown"
[ 1481s] ReadFromJSONFile("/home/abuild/rpmbuild/BUILD/cmake-3.22.1/Tests/CMakeLib/testCTestResourceSpec_data/spec6.json") returned "Invalid socket object", should be "Unknown"
[ 1481s] ReadFromJSONFile("/home/abuild/rpmbuild/BUILD/cmake-3.22.1/Tests/CMakeLib/testCTestResourceSpec_data/spec7.json") returned "Invalid resource type object", should be "Unknown"
[ 1481s] ReadFromJSONFile("/home/abuild/rpmbuild/BUILD/cmake-3.22.1/Tests/CMakeLib/testCTestResourceSpec_data/spec8.json") returned "Invalid resource object", should be "Unknown"
[ 1481s] ReadFromJSONFile("/home/abuild/rpmbuild/BUILD/cmake-3.22.1/Tests/CMakeLib/testCTestResourceSpec_data/spec9.json") returned "Invalid resource object", should be "Invalid socket object"
[ 1481s] ReadFromJSONFile("/home/abuild/rpmbuild/BUILD/cmake-3.22.1/Tests/CMakeLib/testCTestResourceSpec_data/spec10.json") returned "Invalid resource object", should be "Unknown"
[ 1481s] ReadFromJSONFile("/home/abuild/rpmbuild/BUILD/cmake-3.22.1/Tests/CMakeLib/testCTestResourceSpec_data/spec11.json") returned "Invalid resource object", should be "OK"
[ 1481s] ReadFromJSONFile("/home/abuild/rpmbuild/BUILD/cmake-3.22.1/Tests/CMakeLib/testCTestResourceSpec_data/spec12.json") returned "Invalid root object", should be "No version specified"
[ 1481s] ReadFromJSONFile("/home/abuild/rpmbuild/BUILD/cmake-3.22.1/Tests/CMakeLib/testCTestResourceSpec_data/spec13.json") returned "JSON parse error", should be "Unknown"
[ 1481s] ReadFromJSONFile("/home/abuild/rpmbuild/BUILD/cmake-3.22.1/Tests/CMakeLib/testCTestResourceSpec_data/spec14.json") returned "OK", should be "Unknown"
[ 1481s] ReadFromJSONFile("/home/abuild/rpmbuild/BUILD/cmake-3.22.1/Tests/CMakeLib/testCTestResourceSpec_data/spec15.json") returned "OK", should be "Unknown"
[ 1481s] ReadFromJSONFile("/home/abuild/rpmbuild/BUILD/cmake-3.22.1/Tests/CMakeLib/testCTestResourceSpec_data/spec17.json") returned "Invalid resource object", should be "Unknown"
[ 1481s] ReadFromJSONFile("/home/abuild/rpmbuild/BUILD/cmake-3.22.1/Tests/CMakeLib/testCTestResourceSpec_data/spec18.json") returned "Invalid resource object", should be "Invalid version object"
[ 1481s] ReadFromJSONFile("/home/abuild/rpmbuild/BUILD/cmake-3.22.1/Tests/CMakeLib/testCTestResourceSpec_data/spec19.json") returned "Invalid version object", should be "File not found"
[ 1481s] ReadFromJSONFile("/home/abuild/rpmbuild/BUILD/cmake-3.22.1/Tests/CMakeLib/testCTestResourceSpec_data/spec20.json") returned "OK", should be "Unknown"
[ 1481s] ReadFromJSONFile("/home/abuild/rpmbuild/BUILD/cmake-3.22.1/Tests/CMakeLib/testCTestResourceSpec_data/spec21.json") returned "Invalid version object", should be "Unknown"
[ 1481s] ReadFromJSONFile("/home/abuild/rpmbuild/BUILD/cmake-3.22.1/Tests/CMakeLib/testCTestResourceSpec_data/spec22.json") returned "Invalid version object", should be "Unknown"
[ 1481s] ReadFromJSONFile("/home/abuild/rpmbuild/BUILD/cmake-3.22.1/Tests/CMakeLib/testCTestResourceSpec_data/spec23.json") returned "Invalid version object", should be "Unknown"
[ 1481s] ReadFromJSONFile("/home/abuild/rpmbuild/BUILD/cmake-3.22.1/Tests/CMakeLib/testCTestResourceSpec_data/spec24.json") returned "Invalid version object", should be "OK"
[ 1481s] ReadFromJSONFile("/home/abuild/rpmbuild/BUILD/cmake-3.22.1/Tests/CMakeLib/testCTestResourceSpec_data/spec25.json") returned "Unsupported version", should be "Unknown"
[ 1481s] ReadFromJSONFile("/home/abuild/rpmbuild/BUILD/cmake-3.22.1/Tests/CMakeLib/testCTestResourceSpec_data/spec26.json") returned "Unsupported version", should be "OK"
[ 1481s] ReadFromJSONFile("/home/abuild/rpmbuild/BUILD/cmake-3.22.1/Tests/CMakeLib/testCTestResourceSpec_data/spec27.json") returned "Invalid version object", should be "OK"
[ 1481s] ReadFromJSONFile("/home/abuild/rpmbuild/BUILD/cmake-3.22.1/Tests/CMakeLib/testCTestResourceSpec_data/spec28.json") returned "Invalid version object", should be "OK"
[ 1481s] ReadFromJSONFile("/home/abuild/rpmbuild/BUILD/cmake-3.22.1/Tests/CMakeLib/testCTestResourceSpec_data/spec29.json") returned "Invalid version object", should be "Unknown"
[ 1481s] ReadFromJSONFile("/home/abuild/rpmbuild/BUILD/cmake-3.22.1/Tests/CMakeLib/testCTestResourceSpec_data/spec30.json") returned "Invalid version object", should be "OK"
[ 1481s] ReadFromJSONFile("/home/abuild/rpmbuild/BUILD/cmake-3.22.1/Tests/CMakeLib/testCTestResourceSpec_data/spec31.json") returned "Invalid version object", should be "Unknown"
[ 1481s] ReadFromJSONFile("/home/abuild/rpmbuild/BUILD/cmake-3.22.1/Tests/CMakeLib/testCTestResourceSpec_data/spec32.json") returned "Invalid version object", should be "Unknown"
[ 1481s] ReadFromJSONFile("/home/abuild/rpmbuild/BUILD/cmake-3.22.1/Tests/CMakeLib/testCTestResourceSpec_data/spec33.json") returned "Invalid version object", should be "OK"
[ 1481s] ReadFromJSONFile("/home/abuild/rpmbuild/BUILD/cmake-3.22.1/Tests/CMakeLib/testCTestResourceSpec_data/spec34.json") returned "Invalid version object", should be "Unknown"
[ 1481s] ReadFromJSONFile("/home/abuild/rpmbuild/BUILD/cmake-3.22.1/Tests/CMakeLib/testCTestResourceSpec_data/spec35.json") returned "Invalid version object", should be "OK"
[ 1481s] ReadFromJSONFile("/home/abuild/rpmbuild/BUILD/cmake-3.22.1/Tests/CMakeLib/testCTestResourceSpec_data/spec36.json") returned "No version specified", should be "OK"
[ 1481s] ReadFromJSONFile("/home/abuild/rpmbuild/BUILD/cmake-3.22.1/Tests/CMakeLib/testCTestResourceSpec_data/noexist.json") returned "File not found", should be "Unknown"
[ 1481s]