Skip to content

Commit c5caac5

Browse files
committed
print stderr on the fly also to console
1 parent 29c640f commit c5caac5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

valgrind.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ echo "Run tests with valgrind..."
2828
for i in `seq 1 10` ; do sleep 300 && echo "Valgrind tests in Progress..."; done &
2929
alive_pid=$!
3030

31-
valgrind --error-exitcode=666 --leak-check=full --show-leak-kinds=all --errors-for-leak-kinds=all ./test 1>test_std.txt 2>test_err.txt || { kill $alive_pid; echo "Valgrind failed"; exit 1; }
31+
valgrind --error-exitcode=666 --leak-check=full --show-leak-kinds=all --errors-for-leak-kinds=all ./test >test_std.txt 2> >(tee -a test_err.txt >&2) || { kill $alive_pid; echo "Valgrind failed"; exit 1; }
3232

3333
kill $alive_pid

0 commit comments

Comments
 (0)