Get tests working under `prove -lrswTj10`
[p5sagit/Class-Accessor-Grouped.git] / lib / Class / Accessor / Grouped.pm
index fb7a1ed..f2c0ea8 100644 (file)
@@ -15,7 +15,7 @@ BEGIN {
   }
 }
 
-our $VERSION = '0.10009';
+our $VERSION = '0.10010';
 $VERSION = eval $VERSION if $VERSION =~ /_/; # numify for warning-free dev releases
 
 # when changing minimum version don't forget to adjust Makefile.PL as well
@@ -68,7 +68,7 @@ BEGIN {
   constant->import( TRACK_UNDEFER_FAIL => (
     $INC{'Test/Builder.pm'} || $INC{'Test/Builder2.pm'}
       and
-    $0 =~ m|^ x?t / .+ \.t $|x
+    $0 =~ m{ ^ (?: \. \/ )? x?t / .+ \.t $}x
   ) ? 1 : 0 );
 
   require B;