9
9
#include " MantidKernel/ChecksumHelper.h"
10
10
#include " MantidKernel/System.h"
11
11
12
- #include < Poco/File.h>
13
12
#include < cxxtest/TestSuite.h>
13
+ #include < filesystem>
14
14
#include < fstream>
15
15
16
16
using namespace Mantid ::Kernel;
@@ -42,7 +42,7 @@ class ChecksumHelperTest : public CxxTest::TestSuite {
42
42
std::string response = ChecksumHelper::sha1FromFile (filename, false );
43
43
TSM_ASSERT_EQUALS (" The calculated SHA-1 hash is not as expected" , " 363cbe9c113b8bcba9e0aa94dbe45e67856ff26b" ,
44
44
response);
45
- Poco::File (filename). remove ();
45
+ std::filesystem:: remove (filename );
46
46
}
47
47
48
48
void testGitSha1FromFile () {
@@ -54,7 +54,7 @@ class ChecksumHelperTest : public CxxTest::TestSuite {
54
54
std::string response = ChecksumHelper::gitSha1FromFile (filename);
55
55
TSM_ASSERT_EQUALS (" The calculated git-hash is not as expected" , " db46957d5afdb266b4b3321f3ce2b8887f190ff5" ,
56
56
response);
57
- Poco::File (filename). remove ();
57
+ std::filesystem:: remove (filename );
58
58
}
59
59
60
60
void testGitSha1FromFileWithLinuxLineEndings () {
@@ -67,7 +67,7 @@ class ChecksumHelperTest : public CxxTest::TestSuite {
67
67
std::string response = ChecksumHelper::gitSha1FromFile (filename);
68
68
TSM_ASSERT_EQUALS (" The calculated git-hash is not as expected" , " 7e78655a4e48aa2fbd4a3f1aec4043009e342e31" ,
69
69
response);
70
- Poco::File (filename). remove ();
70
+ std::filesystem:: remove (filename );
71
71
}
72
72
73
73
void testGitSha1FromFileWithWindowsLineEndingsFirstConvertsToLF () {
@@ -80,7 +80,7 @@ class ChecksumHelperTest : public CxxTest::TestSuite {
80
80
std::string response = ChecksumHelper::gitSha1FromFile (filename);
81
81
TSM_ASSERT_EQUALS (" The calculated git-hash is not as expected" , " 23dcaeaefce51ed7cae98f6420f67e0ba0e2058a" ,
82
82
response);
83
- Poco::File (filename). remove ();
83
+ std::filesystem:: remove (filename );
84
84
}
85
85
86
86
void testGitSha1FromFileWithOldStyleMacLineEndingsDoesNotConvertToLF () {
@@ -93,7 +93,7 @@ class ChecksumHelperTest : public CxxTest::TestSuite {
93
93
std::string response = ChecksumHelper::gitSha1FromFile (filename);
94
94
TSM_ASSERT_EQUALS (" The calculated git-hash is not as expected" , " 7b7e77332c1610df14fd26476d1601a22a34f11f" ,
95
95
response);
96
- Poco::File (filename). remove ();
96
+ std::filesystem:: remove (filename );
97
97
}
98
98
99
99
void createFile (const std::string &fileName, const std::string &data) {
0 commit comments