diff --git a/root/roofitstats/CMakeLists.txt b/root/roofitstats/CMakeLists.txt index 3f3644f3d4..f2674dbe93 100644 --- a/root/roofitstats/CMakeLists.txt +++ b/root/roofitstats/CMakeLists.txt @@ -9,11 +9,18 @@ if(ROOT_roofit_FOUND) ROOTTEST_ADD_TEST(RooDataSet_ASCII_in MACRO ${CMAKE_CURRENT_SOURCE_DIR}/ASCII-in-out.C MACROARG "false, \"${CMAKE_CURRENT_SOURCE_DIR}/ASCII-in-out_data.txt\"") +if(MSVC AND MSVC_VERSION LESS 1938) ROOTTEST_ADD_TEST(RooDataSet_ASCII_out MACRO ${CMAKE_CURRENT_SOURCE_DIR}/ASCII-in-out.C MACROARG "true, \"./ASCII-in-out_result.txt\"" ${WILLFAIL_ON_WIN32} POSTCMD diff ${CMAKE_CURRENT_SOURCE_DIR}/ASCII-in-out_data.txt ./ASCII-in-out_result.txt) +else() + ROOTTEST_ADD_TEST(RooDataSet_ASCII_out + MACRO ${CMAKE_CURRENT_SOURCE_DIR}/ASCII-in-out.C + MACROARG "true, \"./ASCII-in-out_result.txt\"" + POSTCMD diff ${CMAKE_CURRENT_SOURCE_DIR}/ASCII-in-out_data.txt ./ASCII-in-out_result.txt) +endif() ROOT_ADD_GTEST(stabilityTests stabilityTests.cxx LIBRARIES ROOT::RooFit COPY_TO_BUILDDIR ${CMAKE_CURRENT_SOURCE_DIR}/stabilityTests_data_1.root)