3 @TODO = qw [ SAVEt_SAVESWITCHSTACK ];
6 BEGIN { chdir 't'; @INC = "../lib"; require './test.pl' }
9 if ( $Config{usecrosscompile} ) {
10 skip_all( "Not all files are available during cross-compilation" );
14 my ($file, $func) = @_;
16 open my $fh, $file or die "$0 cannot open $file: $!";
18 while (readline $fh) {
19 last if /^Perl_$func/;
22 while (readline $fh) {
24 $found{$1}++ if /case (SAVEt_\w*):/;
26 close $fh or die "$0 cannot close $file: $!";
30 my $leave_scope = read_cases "../scope.c", "leave_scope";
31 my $ss_dup = read_cases "../sv.c", "ss_dup";
33 ok scalar %$leave_scope, 'we got some';
35 for (sort keys %$leave_scope) {
36 local $::TODO = ' ' if exists $TODO{$_};
37 ok exists $$ss_dup{$_}, "ss_dup handles $_";