skip_all_without_unicode_tables();
}
-plan tests => 790; # Update this when adding/deleting tests.
+plan tests => 789; # Update this when adding/deleting tests.
run_tests() unless caller;
fresh_perl_is($code, $expect, {}, "$bug - $test_name" );
}
}
- {
- # [perl #127855] Slowdown in m//g on COW strings of certain lengths
- my $elapsed= -time;
- my $len= 4e6;
- my $zeros= 40000;
- my $str= ( "0" x $zeros ) . ( "1" x ( $len - $zeros ) );
- my $substr= substr( $str, 1 );
- 1 while $substr=~m/0/g;
- $elapsed += time;
- ok( $elapsed <= 1, "should not COW on long string with substr and m//g");
- }
} # End of sub run_tests
1;
skip_all_without_unicode_tables();
}
-plan tests => 57; #** update watchdog timeouts proportionally when adding tests
+plan tests => 58; #** update watchdog timeouts proportionally when adding tests
use strict;
use warnings;
}
}
+ {
+ # [perl #127855] Slowdown in m//g on COW strings of certain lengths
+ # this should take milliseconds, but took 10's of seconds.
+ my $elapsed= -time;
+ my $len= 4e6;
+ my $zeros= 40000;
+ my $str= ( "0" x $zeros ) . ( "1" x ( $len - $zeros ) );
+ my $substr= substr( $str, 1 );
+ 1 while $substr=~m/0/g;
+ $elapsed += time;
+ ok( $elapsed <= 1, "should not COW on long string with substr and m//g");
+ }
+
+
} # End of sub run_tests
1;