6 my $x = $^O eq 'MSWin32' ? ".exe" : "";
8 for my $cfile (glob "t/*.c") {
9 $cfile =~ m{([^/]+)\.c$};
11 my $output = `t/$name$x 2>&1`;
12 open my $fh, ">", "t/$name.got" or die "Can't open t/$name.got: $!\n";
15 system "diff", "-up", "t/$name.expected", "t/$name.got";