[perl #121662] use a more stringent check for -DPERL_DISABLE_PMC
authorTony Cook <tony@develop-help.com>
Wed, 23 Apr 2014 05:23:43 +0000 (15:23 +1000)
committerTony Cook <tony@develop-help.com>
Wed, 23 Apr 2014 05:23:43 +0000 (15:23 +1000)
which Tom produced updated patch for, but then I grabbed the wrong
patch.

t/run/switchM.t

index 9c12a4a..d2b5994 100644 (file)
@@ -22,7 +22,7 @@ like(runperl(switches => ['-Irun/flib/', '-Mbroken'], stderr => 1),
      "Ensure -Irun/flib/ produces correct filename in warnings");
 
 SKIP: {
-    if ( $Config{ccflags} =~ /-DPERL_DISABLE_PMC/ ) {
+    if ( $Config{ccflags} =~ /(?:^|\s)-DPERL_DISABLE_PMC\b/ ) {
         skip('Tests fail without PMC support', 2);
     }