summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2016-02-14 20:14:55 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2016-02-14 20:14:55 +0000
commit59453973741d40c36e4ac709b83c7bf4fd3c0604 (patch)
treea06672397cce0c77efb13b8e291d586f29e85952
parentExclude debug operator<< from test coverage (diff)
downloadnetfs-59453973741d40c36e4ac709b83c7bf4fd3c0604.tar.bz2
netfs-59453973741d40c36e4ac709b83c7bf4fd3c0604.tar.xz
netfs-59453973741d40c36e4ac709b83c7bf4fd3c0604.zip
Single instance of testExport path
-rw-r--r--netfs/unittests/testCore.cpp3
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");