]> granicus.if.org Git - strace/commitdiff
tests: change gen_tests.sh to read its input as raw input
authorDmitry V. Levin <ldv@altlinux.org>
Tue, 18 Apr 2017 23:25:04 +0000 (23:25 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Tue, 18 Apr 2017 23:25:04 +0000 (23:25 +0000)
* tests/gen_tests.sh: Specify -r option to read.
* tests/gen_tests.in (shmxt): Update.

tests/gen_tests.in
tests/gen_tests.sh

index dab52147becdf2276b8b6eccdd390fd5ea1bb1e9..c0de949b7d8c8cbb354f8fd90ef18d019fd43859 100644 (file)
@@ -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
index a726c07acb9315c0e44ed785f2f6cebe2deb6396..aa702ac67d9df2346823c1cc0a912fc1c621e1a8 100755 (executable)
@@ -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"