summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xt/pagespec_match.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/pagespec_match.t b/t/pagespec_match.t
index ee255b471..9d5573747 100755
--- a/t/pagespec_match.t
+++ b/t/pagespec_match.t
@@ -71,7 +71,7 @@ ok(! pagespec_match("foo", "no_such_function(foo)"), "foo");
my $ret=pagespec_match("foo", "(invalid");
ok(! $ret, "syntax error");
-ok($ret eq "syntax error", "error message");
+ok($ret =~ /syntax error/, "error message");
# old style globlists
ok(pagespec_match("foo", "foo bar"), "simple list");