File: error.t

package info (click to toggle)
libapache-mod-perl 1.16-2
  • links: PTS
  • area: main
  • in suites: slink
  • size: 1,580 kB
  • ctags: 1,064
  • sloc: ansic: 4,489; perl: 4,415; sh: 305; makefile: 137
file content (21 lines) | stat: -rw-r--r-- 440 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
use Apache::test;
#we're testing an experimental feature that doesn't work for some folks
#will revisit later
unless (defined $ENV{USER} and $ENV{USER} eq 'dougm'
       and $net::callback_hooks{ERRSV_CAN_BE_HTTP}) {
    print "1..1\nok 1\n"; 
    exit;
}

skip_test if WIN32;

my $qs = "This_is_not_a_real_error";
my $content = fetch "/perl/throw_error.pl?$qs";

my $i = 0;

print "1..1\n";

print $content;
test ++$i, $content =~ /$qs/;