Dmitry V. Levin | 68d6424 | 2014-09-10 00:07:32 +0000 | [diff] [blame] | 1 | #!/bin/sh |
2 | |||||
Dmitry V. Levin | 7528a0b | 2015-11-19 16:39:32 +0000 | [diff] [blame] | 3 | # Check getdents syscall decoding. |
Dmitry V. Levin | 68d6424 | 2014-09-10 00:07:32 +0000 | [diff] [blame] | 4 | |
5 | . "${srcdir=.}/init.sh" | ||||
6 | |||||
Dmitry V. Levin | 7528a0b | 2015-11-19 16:39:32 +0000 | [diff] [blame] | 7 | rm -rf -- "$LOG".dir |
8 | run_prog > /dev/null | ||||
Dmitry V. Levin | 7e79a8b | 2015-02-23 21:42:16 +0000 | [diff] [blame] | 9 | |
Dmitry V. Levin | 7528a0b | 2015-11-19 16:39:32 +0000 | [diff] [blame] | 10 | OUT="$LOG.out" |
11 | run_strace -a22 -vegetdents $args > "$OUT" | ||||
Dmitry V. Levin | 68d6424 | 2014-09-10 00:07:32 +0000 | [diff] [blame] | 12 | |
Dmitry V. Levin | 9c40599 | 2015-11-26 20:36:35 +0000 | [diff] [blame] | 13 | match_diff "$LOG" "$OUT" |
Dmitry V. Levin | 7528a0b | 2015-11-19 16:39:32 +0000 | [diff] [blame] | 14 | rm -f "$OUT" |
Dmitry V. Levin | 68d6424 | 2014-09-10 00:07:32 +0000 | [diff] [blame] | 15 | |
16 | exit 0 |