Skip to content

Commit

Permalink
Make SaveGSASInstrumentFileTest.h use full pathname re #8073
Browse files Browse the repository at this point in the history
Signed-off-by: Karl Palmen <karl.palmen@stfc.ac.uk>
  • Loading branch information
KarlPalmen committed Nov 14, 2013
1 parent f16b168 commit 668060b
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ class SaveGSASInstrumentFileTest : public CxxTest::TestSuite
saver.execute();
TS_ASSERT(saver.isExecuted());

// Check the output file's existence and size;
TS_ASSERT(Poco::File("test.iparm").exists());
// Check the output file's existence and size
std:string filename = saver.getProperty("OutputFilename"); // get full pathname
TS_ASSERT(Poco::File(filename).exists());

string filename("test.iparm");
vector<size_t> veclineindextoread;
veclineindextoread.push_back(5);
veclineindextoread.push_back(20);
Expand All @@ -77,7 +77,7 @@ class SaveGSASInstrumentFileTest : public CxxTest::TestSuite

// Clean
AnalysisDataService::Instance().remove("PG3ProfileTable");
Poco::File("test.iparm").remove();
Poco::File(filename).remove();

return;
}
Expand Down

0 comments on commit 668060b

Please sign in to comment.