From: des Date: Tue, 24 Jul 2007 13:51:29 +0000 (+0000) Subject: Use a regexp search instead of index() X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0d6a65d31f2d58c7db75e8802feb41acee799397;p=varnish Use a regexp search instead of index() git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1747 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-tools/regress/lib/Varnish/Test/Case/Ticket128.pm b/varnish-tools/regress/lib/Varnish/Test/Case/Ticket128.pm index 9b827c1d..0983546d 100644 --- a/varnish-tools/regress/lib/Varnish/Test/Case/Ticket128.pm +++ b/varnish-tools/regress/lib/Varnish/Test/Case/Ticket128.pm @@ -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();