From 59453973741d40c36e4ac709b83c7bf4fd3c0604 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 14 Feb 2016 20:14:55 +0000 Subject: Single instance of testExport path --- netfs/unittests/testCore.cpp | 3 +-- 1 file changed, 1 insertion(+), 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 #include +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"); -- cgit v1.2.3