mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
Catch failures in Test-N-current.px.
This commit is contained in:
parent
6ed6093dfc
commit
0273ca4988
@ -1,3 +1,7 @@
|
||||
2008-05-31 Micah Cowan <micah@cowan.name>
|
||||
|
||||
* Test-N-current.px: Ensure we catch failures.
|
||||
|
||||
2008-05-23 Micah Cowan <micah@cowan.name>
|
||||
|
||||
* Test--spider.px: Make test expect 0 return code.
|
||||
|
@ -15,6 +15,11 @@ my $currentversion = <<EOF;
|
||||
55555555555555555555555555555555555555555555555555
|
||||
EOF
|
||||
|
||||
# The server should serve a slightly different content, but with the
|
||||
# same length, so we can test which version was downloaded.
|
||||
my $modifiedversion = $currentversion;
|
||||
$modifiedversion =~ s/^(.{20}).(.*)$/$1x$2/s;
|
||||
|
||||
# code, msg, headers, content
|
||||
my %urls = (
|
||||
'/somefile.txt' => {
|
||||
@ -24,7 +29,7 @@ my %urls = (
|
||||
"Content-type" => "text/plain",
|
||||
"Last-Modified" => "Sat, 09 Oct 2004 08:30:00 GMT",
|
||||
},
|
||||
content => $currentversion,
|
||||
content => $modifiedversion,
|
||||
},
|
||||
);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user