Subject: | t/live/validator.t fails probably due to a minor HTML change |
The response from http://validator.w3.org/file-upload.html seems to
have changed slightly. Not sure if this change is permanent and for
everyone, but below worked for me anyway.
diff -ur libwww-perl-5.806/t/live/validator.t libwww-perl-5.806-patched/
t/live/validator.t
--- libwww-perl-5.806/t/live/validator.t 2003-01-02
01:46:05.000000000 +0900
+++ libwww-perl-5.806-patched/t/live/validator.t 2007-07-26
00:06:40.644500000 +0900
@@ -40,7 +40,7 @@
$res = $ua->request($req);
#print $res->as_string;
-unless ($res->content =~ /found to be valid/) {
+unless ($res->content =~ /found to be\s+valid/s) {
print $res->as_string;
print "\nnot ";
}