The prove command is intended to be optional, just to display a summary
of the test result if it is available. However, on old Solaris /bin/sh,
our command
prove ... 2>&1
doesn't redirect the error message from the shell when prove is not
found. We can use a command like like
{ prove ...; } 2>&1
instead, which does redirect the error.
# Older versions of prove do not support the -e option so the
# "test" must be a perl script.
:; { echo 'print <<EOF'; cat "$program.tap"; echo 'EOF'; } >"$program.pl"
- prove "$program.pl" 2>&1
+ { prove "$program.pl"; } 2>&1
return $status
}
m4_divert_pop([PREPARE_TESTS])])