diff options
Diffstat (limited to 'ext/re/t/intflags.t')
-rw-r--r-- | ext/re/t/intflags.t | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/ext/re/t/intflags.t b/ext/re/t/intflags.t new file mode 100644 index 0000000000..256bf1f007 --- /dev/null +++ b/ext/re/t/intflags.t @@ -0,0 +1,25 @@ +#!./perl + +BEGIN { + require Config; + if (($Config::Config{'extensions'} !~ /\bre\b/) ){ + print "1..0 # Skip -- Perl configured without re module\n"; + exit 0; + } +} + +use strict; + +# must use a BEGIN or the prototypes wont be respected meaning +# tests could pass that shouldn't. +BEGIN { require "../../t/test.pl"; } +my $out = runperl(progfile => "t/intflags.pl", stderr => 1 ); +like($out,qr/-OK-\n/, "intflags.pl ran to completion"); + +my %seen; +foreach my $line (split /\n/, $out) { + $line=~s/^r->intflags:\s+// or next; + length($_) and $seen{$_}++ for split /\s+/, $line; +} +is(0+keys %seen,14); +done_testing; |