diff options
Diffstat (limited to 'spec/unit')
-rw-r--r-- | spec/unit/build_spec.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/unit/build_spec.lua b/spec/unit/build_spec.lua index e8f13940..7993cf9b 100644 --- a/spec/unit/build_spec.lua +++ b/spec/unit/build_spec.lua | |||
@@ -307,10 +307,13 @@ describe("LuaRocks build #unit", function() | |||
307 | else | 307 | else |
308 | os.execute("cl " .. fdir .. "\\fixturedep.c /link /export:fixturedep_fn /out:" .. fdir .. "\\fixturedep.dll /implib:" .. fdir .. "\\fixturedep.lib") | 308 | os.execute("cl " .. fdir .. "\\fixturedep.c /link /export:fixturedep_fn /out:" .. fdir .. "\\fixturedep.dll /implib:" .. fdir .. "\\fixturedep.lib") |
309 | end | 309 | end |
310 | finally(function() os.remove(fdir .. "\\libfixturedep.dll") end) | ||
310 | elseif test_env.TEST_TARGET_OS == "linux" then | 311 | elseif test_env.TEST_TARGET_OS == "linux" then |
311 | os.execute("gcc -shared -o " .. fdir .. "/libfixturedep.so " .. fdir .. "/fixturedep.c") | 312 | os.execute("gcc -shared -o " .. fdir .. "/libfixturedep.so " .. fdir .. "/fixturedep.c") |
313 | finally(function() os.remove(fdir .. "/libfixturedep.so") end) | ||
312 | elseif test_env.TEST_TARGET_OS == "osx" then | 314 | elseif test_env.TEST_TARGET_OS == "osx" then |
313 | os.execute("cc -dynamiclib -o " .. fdir .. "/libfixturedep.dylib " .. fdir .. "/fixturedep.c") | 315 | os.execute("cc -dynamiclib -o " .. fdir .. "/libfixturedep.dylib " .. fdir .. "/fixturedep.c") |
316 | finally(function() os.remove(fdir .. "/libfixturedep.dylib") end) | ||
314 | end | 317 | end |
315 | 318 | ||
316 | local rockspec = { | 319 | local rockspec = { |