[LTP] [COMMITTED] test_children_cleanup: fix redirection issue in shell

Li Wang liwang@redhat.com
Sun Feb 13 04:19:50 CET 2022


Signed-off-by: Li Wang <liwang@redhat.com>
---
 lib/newlib_tests/test_children_cleanup.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/newlib_tests/test_children_cleanup.sh b/lib/newlib_tests/test_children_cleanup.sh
index 2a84c3d85..4b4e8b2f0 100755
--- a/lib/newlib_tests/test_children_cleanup.sh
+++ b/lib/newlib_tests/test_children_cleanup.sh
@@ -3,7 +3,7 @@
 # Copyright (c) 2022 SUSE LLC <mdoucha@suse.cz>
 
 TMPFILE="/tmp/ltp_children_cleanup_$$.log"
-./test_children_cleanup &>"$TMPFILE"
+./test_children_cleanup 1>$TMPFILE 2>&1
 CHILD_PID=`sed -n 's/^.*Forked child \([0-9]*\)$/\1/p' "$TMPFILE"`
 rm "$TMPFILE"
 
-- 
2.31.1



More information about the ltp mailing list