Dmitry V. Levin
a402810530
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.
19 lines
266 B
Bash
Executable File
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
|