summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--project2/ice/tests/Jamfile.jam3
-rw-r--r--project2/ice/tests/testClient.cpp5
2 files changed, 6 insertions, 2 deletions
diff --git a/project2/ice/tests/Jamfile.jam b/project2/ice/tests/Jamfile.jam
index 2081be6..976f34d 100644
--- a/project2/ice/tests/Jamfile.jam
+++ b/project2/ice/tests/Jamfile.jam
@@ -8,9 +8,12 @@ lib test :
<library>..//pthread
;
+path-constant me : . ;
+
unit-test testClient :
[ glob testClient.cpp ]
:
+ <define>ROOT=\"$(me)\"
<dependency>test.ice
<library>..//p2iceclient
<library>../../ut//p2ut
diff --git a/project2/ice/tests/testClient.cpp b/project2/ice/tests/testClient.cpp
index 2cc3651..7cd960f 100644
--- a/project2/ice/tests/testClient.cpp
+++ b/project2/ice/tests/testClient.cpp
@@ -4,9 +4,10 @@
#include "iceClient.h"
#include <testOptionsSource.h>
+#define XSTR(s) STR(s)
+#define STR(s) #s
const auto self = boost::filesystem::canonical("/proc/self/exe");
-const auto iceroot = self.parent_path().parent_path().parent_path().parent_path();
-const Glib::ustring testPlatform;
+const boost::filesystem::path iceroot(XSTR(ROOT));
BOOST_AUTO_TEST_CASE( compile_client_full )
{