3 @TODO = qw [ SAVEt_SAVESWITCHSTACK ];
6 BEGIN { chdir 't'; require './test.pl' }
9 my ($file, $func) = @_;
11 open my $fh, $file or die "$0 cannot open $file: $!";
13 while (readline $fh) {
14 last if /^Perl_$func/;
17 while (readline $fh) {
19 $found{$1}++ if /case (SAVEt_\w*):/;
21 close $fh or die "$0 cannot close $file: $!";
25 my $leave_scope = read_cases "../scope.c", "leave_scope";
26 my $ss_dup = read_cases "../sv.c", "ss_dup";
28 ok scalar %$leave_scope, 'we got some';
30 for (sort keys %$leave_scope) {
31 local $::TODO = ' ' if exists $TODO{$_};
32 ok exists $$ss_dup{$_}, "ss_dup handles $_";