]> granicus.if.org Git - strace/commit
tests: workaround a bug in GNU grep
authorDmitry V. Levin <ldv@altlinux.org>
Tue, 13 Dec 2016 19:59:47 +0000 (19:59 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Tue, 13 Dec 2016 20:21:22 +0000 (20:21 +0000)
commit3dac7272e880b9136869f5d72caadf6d68cf99af
tree833cb318b6ca76f0eafadf7f0021f65b35ab6dff
parent34283c2f82a823a80c0e642dd6b1f2774164aecd
tests: workaround a bug in GNU grep

Workaround a bug introduced in GNU grep 2.27, for details see
https://lists.gnu.org/archive/html/bug-grep/2016-12/msg00011.html

* tests/init.sh (grep_pid_status): New function.
* tests/detach-running.test: Use it instead of grep to search
in /proc/$pid/status.
* tests/detach-sleeping.test: Likewise.
* tests/detach-stopped.test: Likewise.
tests/detach-running.test
tests/detach-sleeping.test
tests/detach-stopped.test
tests/init.sh