diff options
author | Dmitry V. Levin <ldv@strace.io> | 2023-04-04 08:00:00 +0000 |
---|---|---|
committer | Dmitry V. Levin <ldv@strace.io> | 2023-04-04 08:00:00 +0000 |
commit | 2bece0624ff52a26ea58e26fc48f94e01a01ec9a (patch) | |
tree | d5240d1d113be0ba9ec23c826b995a13e02fbd3c /tests | |
parent | 628b7eb7449e9557b409386cac85950f404ed0aa (diff) | |
download | strace-2bece0624ff52a26ea58e26fc48f94e01a01ec9a.tar.gz |
tests: double quote array expansions to avoid re-splitting elements
This fixes shellcheck SC2068.
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/ioctl_block--pidns-translation.test | 2 | ||||
-rwxr-xr-x | tests/strace-p-Y-p.test | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/ioctl_block--pidns-translation.test b/tests/ioctl_block--pidns-translation.test index d5655816b..e0cc41102 100755 --- a/tests/ioctl_block--pidns-translation.test +++ b/tests/ioctl_block--pidns-translation.test @@ -15,7 +15,7 @@ check_prog cut check_prog grep run_prog > /dev/null -run_strace --pidns-translation -f -a16 -e trace=ioctl $@ $args > "$EXP" +run_strace --pidns-translation -f -a16 -e trace=ioctl "$@" $args > "$EXP" parent_pid="$(tail -n 2 $LOG | head -n 1 | cut -d' ' -f1)" init_pid="$(tail -n 1 $LOG | cut -d' ' -f1)" grep -E -v "^($parent_pid|$init_pid) |ioctl\([0123][,<]" "$LOG" > "$OUT" diff --git a/tests/strace-p-Y-p.test b/tests/strace-p-Y-p.test index 3dd204bbc..95bc7fe64 100755 --- a/tests/strace-p-Y-p.test +++ b/tests/strace-p-Y-p.test @@ -17,7 +17,7 @@ run_tracee() { local file file="$1"; shift - ../set_ptracer_any $@ > /dev/null 3> "$file" & + ../set_ptracer_any "$@" > /dev/null 3> "$file" & pid=$! while ! [ -s "$file" ]; do kill -0 $pid 2> /dev/null || |