xref: /openbsd-src/gnu/usr.bin/perl/ext/re/t/intflags.t (revision f2a19305cfc49ea4d1a5feb55cd6c283c6f1e031)
1#!./perl
2
3BEGIN {
4    require Config;
5    if (($Config::Config{'extensions'} !~ /\bre\b/) ){
6	print "1..0 # Skip -- Perl configured without re module\n";
7	exit 0;
8    }
9}
10
11use strict;
12
13# must use a BEGIN or the prototypes wont be respected meaning
14# tests could pass that shouldn't.
15BEGIN { require "../../t/test.pl"; }
16my $out = runperl(progfile => "t/intflags.pl", stderr => 1 );
17like($out,qr/-OK-\n/, "intflags.pl ran to completion");
18
19my %seen;
20foreach my $line (split /\n/, $out) {
21    $line=~s/^r->intflags:\s+// or next;
22    length($_) and $seen{$_}++ for split /\s+/, $line;
23}
24is(0+keys %seen,14);
25done_testing;
26