shithub: scc

Download patch

ref: 5ab898a530482dfdcb445a2eb80d23399dd04865
parent: 68111eb68c383a0a0166b452ba5b4e7c50afb5a0
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Tue Nov 16 11:19:03 EST 2021

tests/cc: Redirect stdout to the log file

It is not useful to have the stdout of the test mixed with the
test report.

--- a/tests/cc/execute/chktest.sh
+++ b/tests/cc/execute/chktest.sh
@@ -18,7 +18,7 @@
 	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