equal
deleted
inserted
replaced
19 dosingletest("test_sasl.lua", "latin1toutf8"); |
19 dosingletest("test_sasl.lua", "latin1toutf8"); |
20 end |
20 end |
21 |
21 |
22 local verbosity = tonumber(arg[1]) or 2; |
22 local verbosity = tonumber(arg[1]) or 2; |
23 |
23 |
24 package.path = package.path..";../?.lua"; |
24 if os.getenv("WINDIR") then |
25 package.cpath = package.cpath..";../?.so"; |
25 package.path = package.path..";..\\?.lua"; |
|
26 package.cpath = package.cpath..";..\\?.dll"; |
|
27 else |
|
28 package.path = package.path..";../?.lua"; |
|
29 package.cpath = package.cpath..";../?.so"; |
|
30 end |
26 |
31 |
27 require "util.import" |
32 require "util.import" |
28 |
33 |
29 local env_mt = { __index = function (t,k) return rawget(_G, k) or print("WARNING: Attempt to access nil global '"..tostring(k).."'"); end }; |
34 local env_mt = { __index = function (t,k) return rawget(_G, k) or print("WARNING: Attempt to access nil global '"..tostring(k).."'"); end }; |
30 function testlib_new_env(t) |
35 function testlib_new_env(t) |