]> err.no Git - varnish/commitdiff
Use a regexp search instead of index()
authordes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 24 Jul 2007 13:51:29 +0000 (13:51 +0000)
committerdes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 24 Jul 2007 13:51:29 +0000 (13:51 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1747 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-tools/regress/lib/Varnish/Test/Case/Ticket128.pm

index 9b827c1dfddcb45fb46227dd1bb7cf42d9e79e5d..0983546d02578832bfd1a39343ecadfdbead163b 100644 (file)
@@ -57,7 +57,7 @@ sub testSyntheticError($) {
     die "Incorrect response code\n"
        if $response->code != $CODE;
     die "Incorrect response message\n"
-       unless index($response->content, $MESSAGE);
+       unless $response->content =~ m/\Q$MESSAGE\E/o;
 
     $client->shutdown();