Fix lighttpd tests to use correct lib directory
Andy Grundman [Mon, 5 Nov 2007 22:05:19 +0000 (22:05 +0000)]
t/optional_lighttpd-fastcgi-non-root.t
t/optional_lighttpd-fastcgi.t

index a293870..f27ee28 100644 (file)
@@ -76,12 +76,15 @@ url.rewrite = ( "deep/path\$" => "deep/path/" )
 fastcgi.server = (
     "/deep/path" => (
         "FastCgiTest" => (
-            "socket"       => "$docroot/test.socket",
-            "check-local"  => "disable",
-            "bin-path"     => "$docroot/TestApp/script/testapp_fastcgi.pl",
-            "min-procs"    => 1,
-            "max-procs"    => 1,
-            "idle-timeout" => 20
+            "socket"          => "$docroot/test.socket",
+            "check-local"     => "disable",
+            "bin-path"        => "$docroot/TestApp/script/testapp_fastcgi.pl",
+            "min-procs"       => 1,
+            "max-procs"       => 1,
+            "idle-timeout"    => 20,
+            "bin-environment" => (
+                "PERL5LIB" => "$docroot/../../lib"
+            )
         )
     )
 )
index 43a474e..b64c186 100644 (file)
@@ -71,12 +71,15 @@ server.port = $port
 fastcgi.server = (
     "" => (
         "FastCgiTest" => (
-            "socket"       => "$docroot/test.socket",
-            "check-local"  => "disable",
-            "bin-path"     => "$docroot/TestApp/script/testapp_fastcgi.pl",
-            "min-procs"    => 1,
-            "max-procs"    => 1,
-            "idle-timeout" => 20
+            "socket"          => "$docroot/test.socket",
+            "check-local"     => "disable",
+            "bin-path"        => "$docroot/TestApp/script/testapp_fastcgi.pl",
+            "min-procs"       => 1,
+            "max-procs"       => 1,
+            "idle-timeout"    => 20,
+            "bin-environment" => (
+                "PERL5LIB" => "$docroot/../../lib"
+            )
         )
     )
 )