Skip to content

Commit

Permalink
BUG: do not let tests write to the same temporary signal file
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Rit committed Jan 20, 2022
1 parent e3b4d89 commit 40e40d7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/rtkwarpfourdtoprojectionstacktest.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,11 @@ main(int, char **)
PasteImageFilterType::Pointer pasteFilterStaticProjections = PasteImageFilterType::New();
pasteFilterStaticProjections->SetDestinationImage(projectionsSource->GetOutput());

#ifdef RTK_USE_CUDA
std::string signalFileName = "signal_bw_cuda.txt";
#else
std::string signalFileName = "signal_bw.txt";
#endif

std::ofstream signalFile(signalFileName.c_str());
for (unsigned int noProj = 0; noProj < NumberOfProjectionImages; noProj++)
Expand Down
4 changes: 4 additions & 0 deletions test/rtkwarpprojectionstacktofourdtest.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,11 @@ main(int, char **)
PasteImageFilterType::Pointer pasteFilterStaticProjections = PasteImageFilterType::New();
pasteFilterStaticProjections->SetDestinationImage(projectionsSource->GetOutput());

#ifdef RTK_USE_CUDA
std::string signalFileName = "signal_fw_cuda.txt";
#else
std::string signalFileName = "signal_fw.txt";
#endif

std::ofstream signalFile(signalFileName.c_str());

Expand Down

0 comments on commit 40e40d7

Please sign in to comment.