diff options
Diffstat (limited to 'meta/recipes-extended/ltp/ltp/0038-commands-gdb01-replace-stdin-with-dev-null.patch')
-rw-r--r-- | meta/recipes-extended/ltp/ltp/0038-commands-gdb01-replace-stdin-with-dev-null.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/meta/recipes-extended/ltp/ltp/0038-commands-gdb01-replace-stdin-with-dev-null.patch b/meta/recipes-extended/ltp/ltp/0038-commands-gdb01-replace-stdin-with-dev-null.patch new file mode 100644 index 0000000000..f7c0a4bf17 --- /dev/null +++ b/meta/recipes-extended/ltp/ltp/0038-commands-gdb01-replace-stdin-with-dev-null.patch | |||
@@ -0,0 +1,34 @@ | |||
1 | From 2f6ab8f694b26b7f2566624f6d1f23788d6ab8a0 Mon Sep 17 00:00:00 2001 | ||
2 | From: Jan Stancek <jstancek@redhat.com> | ||
3 | Date: Mon, 11 Sep 2017 12:57:58 +0200 | ||
4 | Subject: [PATCH] commands/gdb01: replace stdin with /dev/null | ||
5 | |||
6 | If this testcase runs as background process, gdb can receive | ||
7 | SIGTTOU and then testcase gets stuck. | ||
8 | |||
9 | Signed-off-by: Jan Stancek <jstancek@redhat.com> | ||
10 | |||
11 | Upstream-Status: Backport | ||
12 | [https://github.com/linux-test-project/ltp/commit/2f6ab8f694b26b7f2566624f6d1f23788d6ab8a0] | ||
13 | |||
14 | Signed-off-by: Yi Zhao <yi.zhao@windriver.com> | ||
15 | --- | ||
16 | testcases/commands/gdb/gdb01.sh | 2 +- | ||
17 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
18 | |||
19 | diff --git a/testcases/commands/gdb/gdb01.sh b/testcases/commands/gdb/gdb01.sh | ||
20 | index 07ae36f..e3a5b51 100755 | ||
21 | --- a/testcases/commands/gdb/gdb01.sh | ||
22 | +++ b/testcases/commands/gdb/gdb01.sh | ||
23 | @@ -29,7 +29,7 @@ TST_NEEDS_CMDS="gdb /bin/cat" | ||
24 | |||
25 | simple_test() | ||
26 | { | ||
27 | - gdb /bin/cat -ex "run /etc/passwd" -ex quit | ||
28 | + gdb /bin/cat -ex "run /etc/passwd" -ex quit < /dev/null | ||
29 | RC=$? | ||
30 | if [ $RC -eq 0 ] ; then | ||
31 | tst_res TPASS "gdb attached to process and completed run" | ||
32 | -- | ||
33 | 2.7.4 | ||
34 | |||