fix regression test
authorJoey Hess <joey@kodama.kitenet.net>
Sun, 25 May 2008 18:12:49 +0000 (14:12 -0400)
committerJoey Hess <joey@kodama.kitenet.net>
Sun, 25 May 2008 18:12:49 +0000 (14:12 -0400)
t/pagespec_match.t

index ee255b4714036bd4cbf5ede7b0f878403c0116de..9d55737470fd122b42aeb2d64c53d378e7501e95 100755 (executable)
@@ -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");