From 97c03fffe667c689417e73efe337e4862b6e24ab Mon Sep 17 00:00:00 2001 From: Arne Morten Kvarving Date: Fri, 2 Dec 2022 09:05:08 +0100 Subject: [PATCH] changed: flag an error if just one case has a rft file --- test_util/EclRegressionTest.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test_util/EclRegressionTest.cpp b/test_util/EclRegressionTest.cpp index 37b15e3dfb2..65048c894c4 100644 --- a/test_util/EclRegressionTest.cpp +++ b/test_util/EclRegressionTest.cpp @@ -1044,9 +1044,9 @@ void ECLRegressionTest::results_rft() bool foundRft1 = checkFileName(rootName1, "RFT", fileName1); bool foundRft2 = checkFileName(rootName2, "RFT", fileName2); - if ((foundRft1) && (not foundRft2)){ - std::string message ="test case rft file " + rootName2 + ".RFT not found"; - std::cout << message << std::endl; + if ((!foundRft1 && foundRft2) || (foundRft1 && !foundRft2)) { + std::string message ="test case rft file " + (foundRft1 ? rootName1 : rootName2) + ".RFT not found"; + std::cout << message << std::endl; OPM_THROW(std::runtime_error, message); }