diff --git a/Source/cmCTest.cxx b/Source/cmCTest.cxx index e82ef4b9d..f0205e5ab 100644 --- a/Source/cmCTest.cxx +++ b/Source/cmCTest.cxx @@ -4041,7 +4041,7 @@ int cmCTest::RunCMakeAndTest(std::string* outstring) } // return to the original directory cmSystemTools::ChangeDirectory(cwd.c_str()); - retVal = 1; + return 1; } if(outstring)