From 4081782832b7dc8b7426cedcec9a4495229dda6c Mon Sep 17 00:00:00 2001 From: Nick Bowler Date: Sat, 1 Jul 2023 17:32:57 -0400 Subject: [PATCH] test-tap: Fix Solaris /bin/sh "prove: not found" on stderr. 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. --- snippet/test-tap.at | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippet/test-tap.at b/snippet/test-tap.at index cccea49..2873cf4 100644 --- a/snippet/test-tap.at +++ b/snippet/test-tap.at @@ -25,7 +25,7 @@ test_run_tap () { # Older versions of prove do not support the -e option so the # "test" must be a perl script. :; { echo 'print <"$program.pl" - prove "$program.pl" 2>&1 + { prove "$program.pl"; } 2>&1 return $status } m4_divert_pop([PREPARE_TESTS])]) -- 2.43.2