Skip to content
Snippets Groups Projects
Commit 56b5b8dd authored by Gigg, Martyn Anthony's avatar Gigg, Martyn Anthony
Browse files

Fix windows test failure by closing a file handle before it is removed. Re #2501

parent d697b86c
No related branches found
No related tags found
No related merge requests found
...@@ -43,7 +43,8 @@ public: ...@@ -43,7 +43,8 @@ public:
std::getline( testFile, fileLine ); std::getline( testFile, fileLine );
TS_ASSERT_EQUALS ( fileLine, "-0.0105 -0.0735 6.13876e+08 6.1697e+07\r" ); TS_ASSERT_EQUALS ( fileLine, "-0.0105 -0.0735 6.13876e+08 6.1697e+07\r" );
// remove file created by this algorithm // remove file created by this algorithm, closing it first as Windows gets tetchy about this
testFile.close();
Poco::File(outputFile).remove(); Poco::File(outputFile).remove();
} }
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment