summary refs log tree commit diff stats
path: root/tests/testament
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2015-03-12 11:03:08 +0100
committerAndreas Rumpf <rumpf_a@web.de>2015-03-12 11:03:08 +0100
commitb97207a74ce7d827160e02a6e0194a569608dcb5 (patch)
tree6db90742516a7d4c047e16dd788a5fc422c4cfd3 /tests/testament
parent5af28b9ea146c388cd8470ce33acb3df0cfcb04e (diff)
parentac0f62084c6869ae1a7905638d60009bb9efd8c8 (diff)
downloadNim-b97207a74ce7d827160e02a6e0194a569608dcb5.tar.gz
Merge pull request #2307 from def-/test-fixes-2
Test fixes 2
Diffstat (limited to 'tests/testament')
-rw-r--r--tests/testament/categories.nim6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/testament/categories.nim b/tests/testament/categories.nim
index 323abd768..c293be7e8 100644
--- a/tests/testament/categories.nim
+++ b/tests/testament/categories.nim
@@ -86,9 +86,9 @@ proc runBasicDLLTest(c, r: var TResults, cat: Category, options: string) =
     safeCopyFile("lib" / nimrtlDll, "tests/dll" / nimrtlDll)
   else:
     # posix relies on crappy LD_LIBRARY_PATH (ugh!):
-    var libpath = getenv"LD_LIBRARY_PATH".string
-    if peg"\i '/nim' (!'/')* '/lib'" notin libpath:
-      echo "[Warning] insufficient LD_LIBRARY_PATH"
+    var libpath = getEnv"LD_LIBRARY_PATH".string
+    # Temporarily add the lib directory to LD_LIBRARY_PATH:
+    putEnv("LD_LIBRARY_PATH", "lib:" & libpath)
     var serverDll = DynlibFormat % "server"
     safeCopyFile("tests/dll" / serverDll, "lib" / serverDll)