Fixed tests/test.lua to work on Windows

Fri, 13 Feb 2009 22:21:59 +0500

author
Waqas Hussain <waqas20@gmail.com>
date
Fri, 13 Feb 2009 22:21:59 +0500
changeset 807
ce39abe0259a
parent 806
3ab6d7aec53f
child 808
28d6515f5b7b

Fixed tests/test.lua to work on Windows

tests/test.lua file | annotate | diff | comparison | revisions
--- a/tests/test.lua	Fri Feb 13 22:10:29 2009 +0500
+++ b/tests/test.lua	Fri Feb 13 22:21:59 2009 +0500
@@ -21,8 +21,13 @@
 
 local verbosity = tonumber(arg[1]) or 2;
 
-package.path = package.path..";../?.lua";
-package.cpath = package.cpath..";../?.so";
+if os.getenv("WINDIR") then
+	package.path = package.path..";..\\?.lua";
+	package.cpath = package.cpath..";..\\?.dll";
+else
+	package.path = package.path..";../?.lua";
+	package.cpath = package.cpath..";../?.so";
+end
 
 require "util.import"
 

mercurial