commit b1d315c34637fc9de8fc97d57172f1b82024f741
parent 6b5337c105c2380bf942f9dcdc304aa4b1ee4263
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Tue, 16 Nov 2021 16:19:03 +0100
tests/cc: Redirect stdout to the log file
It is not useful to have the stdout of the test mixed with the
test report.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/cc/execute/chktest.sh b/tests/cc/execute/chktest.sh
@@ -18,7 +18,7 @@ do
state=${state:-""}
rm -f a.out
- (SCCPREFIX=$SCCPREFIX $CC -Isysinclude $CFLAGS "$i" && ./a.out) 2>>test.log &&
+ (SCCPREFIX=$SCCPREFIX $CC -Isysinclude $CFLAGS "$i" && ./a.out) >>test.log 2>&1 &&
printf '[PASS]' || printf '[FAIL]'
printf '\t%s\t%s\n' $i $state
done < $file