copy nimrtl into lib, reset LD_LIBRARY_PATH after use
This commit is contained in:
parent
d9281adf8a
commit
7f5c49e204
1 changed files with 3 additions and 0 deletions
|
|
@ -89,8 +89,11 @@ proc runBasicDLLTest(c, r: var TResults, cat: Category, options: string) =
|
||||||
var libpath = getEnv"LD_LIBRARY_PATH".string
|
var libpath = getEnv"LD_LIBRARY_PATH".string
|
||||||
# Temporarily add the lib directory to LD_LIBRARY_PATH:
|
# Temporarily add the lib directory to LD_LIBRARY_PATH:
|
||||||
putEnv("LD_LIBRARY_PATH", "lib:" & libpath)
|
putEnv("LD_LIBRARY_PATH", "lib:" & libpath)
|
||||||
|
defer: putEnv("LD_LIBRARY_PATH", libpath)
|
||||||
var serverDll = DynlibFormat % "server"
|
var serverDll = DynlibFormat % "server"
|
||||||
safeCopyFile("tests/dll" / serverDll, "lib" / serverDll)
|
safeCopyFile("tests/dll" / serverDll, "lib" / serverDll)
|
||||||
|
var nimrtlDll = DynlibFormat % "nimrtl"
|
||||||
|
safeCopyFile("tests/dll" / nimrtlDll, "lib" / nimrtlDll)
|
||||||
|
|
||||||
testSpec r, makeTest("tests/dll/client.nim", options & " -d:useNimRtl",
|
testSpec r, makeTest("tests/dll/client.nim", options & " -d:useNimRtl",
|
||||||
cat, actionRun)
|
cat, actionRun)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue