From 0d6a65d31f2d58c7db75e8802feb41acee799397 Mon Sep 17 00:00:00 2001 From: des Date: Tue, 24 Jul 2007 13:51:29 +0000 Subject: [PATCH] Use a regexp search instead of index() 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.39.5