Browse Source

[tests] remove env TODO test: don't use undefined env vars

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2244 152afb58-edef-0310-8abb-c4023f1b3aa9
svn/tags/lighttpd-1.4.20
Stefan Bühler 14 years ago
parent
commit
2bd973108d
  1. 2
      tests/Makefile.am
  2. 1
      tests/env-variables.conf
  3. 21
      tests/env-variables.t

2
tests/Makefile.am

@ -42,8 +42,6 @@ CONFS=fastcgi-10.conf \
mod-redirect.t \
mod-rewrite.t \
mod-userdir.t \
env-variables.t \
env-variables.conf \
symlink.t \
request.t \
mod-ssi.t \

1
tests/env-variables.conf

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

21
tests/env-variables.t

@ -1,21 +0,0 @@
#!/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