Browse Source

- 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
svn/tags/lighttpd-1.4.17
Marcus Rückert 15 years ago
parent
commit
8cb24edfd1
  1. 1
      tests/env-variables.conf
  2. 22
      tests/env-variables.t

1
tests/env-variables.conf

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

22
tests/env-variables.t

@ -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…
Cancel
Save