strace/tests/pipe.test
Dmitry V. Levin c10dd66fb7 tests: rewrite pipe syscall decoding check from match_grep to match_diff
* configure.ac (AC_CHECK_FUNCS): Remove pipe2.
* tests/pipe.c: Include <asm/unistd.h>, skip the test if [!__NR_pipe]
instead of [!HAVE_PIPE2].
(main): Do not call pipe2.
* tests/pipe.test: Skip the test if libc pipe wrapper does not use
pipe syscall, rewrite from match_grep to match_diff.
* tests/pipe.expected: Update expected output.
2017-02-12 14:12:41 +00:00

14 lines
237 B
Bash
Executable File

#!/bin/sh
# Check decoding of pipe syscall.
. "${srcdir=.}/init.sh"
run_prog
run_strace -a13 -epipe $args
check_prog grep
LC_ALL=C grep -x "pipe(.*" "$LOG" > /dev/null ||
skip_ 'test executable does not use pipe syscall'
match_diff