Skip to content

Commit

Permalink
don't delete test output files if the test fails.
Browse files Browse the repository at this point in the history
  • Loading branch information
KrisThielemans committed Jan 12, 2024
1 parent 54bd997 commit 4653741
Showing 1 changed file with 26 additions and 20 deletions.
46 changes: 26 additions & 20 deletions src/test/test_stir_math.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -194,18 +194,21 @@ stir_mathTests::run_tests()
check_if_equal( calc_data, *out_data_ptr,"test with power and scalar multiplication with --including-first and --accumulate");
}

remove("STIRtmp1.ahv");
remove("STIRtmp1.hv");
remove("STIRtmp1.v");
remove("STIRtmp2.ahv");
remove("STIRtmp2.hv");
remove("STIRtmp2.v");
remove("STIRtmp3.ahv");
remove("STIRtmp3.hv");
remove("STIRtmp3.v");
remove("STIRtmpout.ahv");
remove("STIRtmpout.hv");
remove("STIRtmpout.v");
if (this->is_everything_ok())
{
remove("STIRtmp1.ahv");
remove("STIRtmp1.hv");
remove("STIRtmp1.v");
remove("STIRtmp2.ahv");
remove("STIRtmp2.hv");
remove("STIRtmp2.v");
remove("STIRtmp3.ahv");
remove("STIRtmp3.hv");
remove("STIRtmp3.v");
remove("STIRtmpout.ahv");
remove("STIRtmpout.hv");
remove("STIRtmpout.v");
}
}

// projdata
Expand Down Expand Up @@ -325,14 +328,17 @@ stir_mathTests::run_tests()
"test with power and scalar multiplication with --including-first and --accumulate");
}

remove("STIRtmp1.hs");
remove("STIRtmp1.s");
remove("STIRtmp2.hs");
remove("STIRtmp2.s");
remove("STIRtmp3.hs");
remove("STIRtmp3.s");
remove("STIRtmpout.hs");
remove("STIRtmpout.s");
if (this->is_everything_ok())
{
remove("STIRtmp1.hs");
remove("STIRtmp1.s");
remove("STIRtmp2.hs");
remove("STIRtmp2.s");
remove("STIRtmp3.hs");
remove("STIRtmp3.s");
remove("STIRtmpout.hs");
remove("STIRtmpout.s");
}
}

}
Expand Down

0 comments on commit 4653741

Please sign in to comment.