Upgrade to Test::Harness 2.30.
[p5sagit/p5-mst-13.2.git] / lib / Benchmark.t
index b4d7149..8081476 100644 (file)
@@ -583,7 +583,7 @@ is_deeply ([keys %Benchmark::Cache], \@before_keys,
 
     foreach my $func (@takes_no_args) {
         eval "$func(42)";
-        like( $@, qr/Too many arguments for Benchmark::$func/, "$func usage: with args" );
+        is( $@, $usage{$func}, "$func usage: with args" );
     }
 }