]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
t: Accept optional file:// prefix on W3m-control
authorSimon McVittie <smcv@debian.org>
Tue, 23 Jan 2018 10:18:44 +0000 (10:18 +0000)
committerSimon McVittie <smcv@debian.org>
Mon, 29 Jan 2018 22:35:29 +0000 (22:35 +0000)
t/relativity.t

index 1dda1968717515df5f7d099ca9dc312b29f705cb..0b8b6eb4b76f411ddf0adf7c1b55e0d91ed322ba 100755 (executable)
@@ -381,7 +381,7 @@ sub test_site5_w3mmode {
        my $redirect = run_cgi(goto => 1, PATH_INFO => '/ikiwiki.cgi',
                SCRIPT_NAME => '/cgi-bin/ikiwiki-w3m.cgi');
        like($redirect, qr{^Content-type: text/plain\r?\n}m);
-       like($redirect, qr{^W3m-control: GOTO \Q$pwd\E/t/tmp/out/a/b/c/\r?\n}m);
+       like($redirect, qr{^W3m-control: GOTO (?:file://)?\Q$pwd\E/t/tmp/out/a/b/c/\r?\n}m);
 }
 
 sub test_site6_behind_reverse_proxy {