[svn:mod_parrot] r285 - mod_parrot/trunk/t/lib/ModParrot

[email protected]
Newsgroups perl.cvs.mod_parrot,perl.cvs.mod_parrot
Message-ID <[email protected]>
Author: jhorwitz
Date: Thu Dec 20 14:21:49 2007
New Revision: 285

Modified:
   mod_parrot/trunk/t/lib/ModParrot/TestRun.pm

Log:
set PARROT_RUNTIME during tests so we can load core libraries


Modified: mod_parrot/trunk/t/lib/ModParrot/TestRun.pm
==============================================================================
--- mod_parrot/trunk/t/lib/ModParrot/TestRun.pm	(original)
+++ mod_parrot/trunk/t/lib/ModParrot/TestRun.pm	Thu Dec 20 14:21:49 2007
@@ -27,6 +27,12 @@
     my $self = shift;
     Apache::TestConfig::autoconfig_skip_module_add('mod_parrot.c');
     $self->SUPER::pre_configure();
+
+    # set PARROT_RUNTIME so we can load core libraries
+    my $defines = Apache::Test::vars('defines');
+    if (defined($defines) && $defines =~ /PARROT_BUILD_DIR=(.+)/) {
+        $ENV{'PARROT_RUNTIME'} = $1;
+    }
 }
 
 1;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.