strace/tests/umovestr2.test
Dmitry V. Levin a402810530 tests: rewrite umovestr2.test without using grep
The regular expression generated by umovestr2.c on systems with large
page size is too big for GNU grep.  Rewrite the test to use diff
instead of grep.

* tests/umovestr2.test: Use match_diff instead of match_grep.
* tests/umovestr2.c (main): Convert output from regexp to plain text.
2015-04-06 22:17:28 +00:00

19 lines
266 B
Bash
Executable File

#!/bin/sh
# umovestr short read regression test
. "${srcdir=.}/init.sh"
OUT="$LOG.out"
EXP="$LOG.exp"
run_prog > /dev/null
run_strace -veexecve -s262144 $args > "$EXP"
check_prog sed
sed 1d < "$LOG" > "$OUT"
match_diff "$OUT" "$EXP"
rm -f "$EXP" "$OUT"
exit 0