- added test case for crash on undefined environment variables
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1975 152afb58-edef-0310-8abb-c4023f1b3aa9
This commit is contained in:
parent
f2c8fb6eca
commit
8cb24edfd1
|
@ -0,0 +1 @@
|
|||
server.document-root = env.CWD
|
|
@ -0,0 +1,22 @@
|
|||
#!/usr/bin/perl
|
||||
|
||||
BEGIN {
|
||||
# add current source dir to the include-path
|
||||
# we need this for make distcheck
|
||||
(my $srcdir = $0) =~ s#/[^/]+$#/#;
|
||||
unshift @INC, $srcdir;
|
||||
}
|
||||
|
||||
use strict;
|
||||
use IO::Socket;
|
||||
use Test::More tests => 2;
|
||||
use LightyTest;
|
||||
|
||||
my $tf = LightyTest->new();
|
||||
$tf->{CONFIGFILE} = 'env-variables.conf';
|
||||
|
||||
TODO: {
|
||||
local $TODO = 'we still crash on undefined environment variables';
|
||||
ok($tf->start_proc == 0, "Starting lighttpd");
|
||||
ok($tf->stop_proc == 0, "Stopping lighttpd");
|
||||
};
|
Loading…
Reference in New Issue