From: Dmitry V. Levin Date: Tue, 18 Apr 2017 23:25:04 +0000 (+0000) Subject: tests: change gen_tests.sh to read its input as raw input X-Git-Tag: v4.17~71 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d12d6310160a3ef31c03b85ad0914f7443fb2a6d;p=strace tests: change gen_tests.sh to read its input as raw input * tests/gen_tests.sh: Specify -r option to read. * tests/gen_tests.in (shmxt): Update. --- diff --git a/tests/gen_tests.in b/tests/gen_tests.in index dab52147..c0de949b 100644 --- a/tests/gen_tests.in +++ b/tests/gen_tests.in @@ -270,7 +270,7 @@ setreuid32 -a17 setrlimit -a27 setuid -a10 setuid32 -a12 -shmxt -a11 -e trace=/\\(osf_\\)\\?shmat,shmdt +shmxt -a11 -e trace='/(osf_)?shmat,shmdt' shutdown -a24 siginfo -e trace=none signal_receive -a16 -e trace=kill diff --git a/tests/gen_tests.sh b/tests/gen_tests.sh index a726c07a..aa702ac6 100755 --- a/tests/gen_tests.sh +++ b/tests/gen_tests.sh @@ -54,7 +54,7 @@ fi names= -while read name args; do { +while read -r name args; do { [ -n "${name###*}" ] || continue if [ -z "$match" ]; then names="$names $name"