Changeset

808:ce39abe0259a

Fixed tests/test.lua to work on Windows
author Waqas Hussain <waqas20@gmail.com>
date Fri, 13 Feb 2009 22:21:59 +0500
parents 807:3ab6d7aec53f
children 809:28d6515f5b7b
files tests/test.lua
diffstat 1 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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"