#
# Test for two bugs:
#
# mod_persistentperl mixes up the perperl options on the #! line in the script
#
# mod_persistentperl can't switch tempbase between scripts because it holds open
# the tempfile.


use lib 't';
use ModTest;

my $scr = 'perperl/env';

ModTest::test_init(5, [$scr], '
    PersistentPerlArgs	"-w"
');

print "1..1\n";

$txt = &ModTest::html_get("/$scr");
if ($txt =~ /warn=1/) {
    print "ok\n";
} else {
    print "failed\n";
}
