12
12
#include " MantidKernel/ConfigService.h"
13
13
#include " MantidKernel/FileDescriptor.h"
14
14
15
- #include < Poco/Path.h>
16
15
#include < filesystem>
17
16
18
17
using Mantid::Kernel::FileDescriptor;
@@ -29,18 +28,18 @@ class FileDescriptorTest : public CxxTest::TestSuite {
29
28
cfg.reset ();
30
29
const auto &dataPaths = cfg.getDataSearchDirs ();
31
30
for (const auto &dataPath : dataPaths) {
32
- Poco::Path nxsPath (dataPath, " CNCS_7860_event.nxs" ) ;
33
- if (std::filesystem::exists (nxsPath. toString () ))
34
- m_testNexusPath = nxsPath.toString ();
35
- Poco::Path nonNxsPath (dataPath, " CSP79590.raw" ) ;
36
- if (std::filesystem::exists (nonNxsPath. toString () ))
37
- m_testNonNexusPath = nonNxsPath.toString ();
38
- Poco::Path asciiPath (dataPath, " AsciiExample.txt" ) ;
39
- if (std::filesystem::exists (asciiPath. toString () ))
40
- m_testAsciiPath = asciiPath.toString ();
41
- Poco::Path emptyFilePath (dataPath, " emptyFile.txt" ) ;
42
- if (std::filesystem::exists (emptyFilePath. toString () ))
43
- m_emptyFilePath = emptyFilePath.toString ();
31
+ const auto nxsPath = std::filesystem::path (dataPath) / " CNCS_7860_event.nxs" ;
32
+ if (std::filesystem::exists (nxsPath))
33
+ m_testNexusPath = nxsPath.string ();
34
+ const auto nonNxsPath = std::filesystem::path (dataPath) / " CSP79590.raw" ;
35
+ if (std::filesystem::exists (nonNxsPath))
36
+ m_testNonNexusPath = nonNxsPath.string ();
37
+ const auto asciiPath = std::filesystem::path (dataPath) / " AsciiExample.txt" ;
38
+ if (std::filesystem::exists (asciiPath))
39
+ m_testAsciiPath = asciiPath.string ();
40
+ const auto emptyFilePath = std::filesystem::path (dataPath) / " emptyFile.txt" ;
41
+ if (std::filesystem::exists (emptyFilePath))
42
+ m_emptyFilePath = emptyFilePath.string ();
44
43
45
44
if (!m_testNexusPath.empty () && !m_testNonNexusPath.empty () && !m_testAsciiPath.empty () &&
46
45
!m_emptyFilePath.empty ())
0 commit comments