[LTP] [PATCH COMMITTED] commands/gdb01: replace stdin with /dev/null
Jan Stancek
jstancek@redhat.com
Mon Sep 11 13:11:41 CEST 2017
If this testcase runs as background process, gdb can receive
SIGTTOU and then testcase gets stuck.
Signed-off-by: Jan Stancek <jstancek@redhat.com>
---
testcases/commands/gdb/gdb01.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/testcases/commands/gdb/gdb01.sh b/testcases/commands/gdb/gdb01.sh
index 07ae36fcb5ee..e3a5b519385c 100755
--- a/testcases/commands/gdb/gdb01.sh
+++ b/testcases/commands/gdb/gdb01.sh
@@ -29,7 +29,7 @@ TST_NEEDS_CMDS="gdb /bin/cat"
simple_test()
{
- gdb /bin/cat -ex "run /etc/passwd" -ex quit
+ gdb /bin/cat -ex "run /etc/passwd" -ex quit < /dev/null
RC=$?
if [ $RC -eq 0 ] ; then
tst_res TPASS "gdb attached to process and completed run"
--
1.8.3.1
More information about the ltp
mailing list