-use Test::More tests => $total + 1;
-
-use IPC::Cmd qw/run/;
-
-(my $success, my $err_code, undef, undef, my $stderr)
- = run command => [
- $^X,
- map('-I' . $_, @INC),
- '-c',
- 't/data/mixed.d'
- ];
-$stderr = join '', @$stderr;
-unless ($success) {
- diag $stderr;
- diag "Failed to execute data file (error $err_code)";
- fail "Couldn't run test $_" for 1 .. $total + 1;
-}