diff options
-rw-r--r-- | netfs/unittests/testCore.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/netfs/unittests/testCore.cpp b/netfs/unittests/testCore.cpp index a35274c..6f8eb57 100644 --- a/netfs/unittests/testCore.cpp +++ b/netfs/unittests/testCore.cpp @@ -6,6 +6,7 @@ #include <boost/filesystem/path.hpp> #include <ostream> +const auto testExport = stringbf("testExport-%d", getpid()); const std::string testEndpoint("tcp -h localhost -p 12012"); const std::string testUri("tcp://localhost:12012/testvol"); @@ -66,7 +67,6 @@ BOOST_AUTO_TEST_CASE ( clientInitialised ) BOOST_AUTO_TEST_CASE( testNavigation ) { - const auto testExport = stringbf("testExport-%d", getpid()); struct stat attr, rootattr, insideattr; memset(&attr, 0, sizeof(attr)); memset(&rootattr, 0, sizeof(rootattr)); @@ -103,7 +103,6 @@ BOOST_AUTO_TEST_CASE( testNavigation ) BOOST_AUTO_TEST_CASE( testSandboxing ) { - const auto testExport = stringbf("testExport-%d", getpid()); // A previous (bad) run might create one or more of these: boost::filesystem::remove(binDir / "outside"); boost::filesystem::remove(binDir / "sub" / "outside"); |