- 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:
Marcus Rückert 2007-08-28 23:11:56 +00:00
parent f2c8fb6eca
commit 8cb24edfd1
2 changed files with 23 additions and 0 deletions

1
tests/env-variables.conf Normal file
View File

@ -0,0 +1 @@
server.document-root = env.CWD

22
tests/env-variables.t Normal file
View File

@ -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");
};