* tests/access.test: Use run_strace_match_diff.
* tests/access.c (main): Update expected output.
printf("access(\"%s\", R_OK|W_OK|X_OK) = %ld %s (%m)\n",
sample, rc, errno2name());
+ puts("+++ exited with 0 +++");
return 0;
}
#!/bin/sh
-# Check access syscall decoding.
+# Check decoding of access syscall.
. "${srcdir=.}/init.sh"
-check_prog grep
-run_prog > /dev/null
-run_strace -eaccess -a30 $args > "$EXP"
-
-# Filter out access() calls made by libc.
-grep -F access_sample < "$LOG" > "$OUT"
-match_diff "$OUT" "$EXP"
-
-rm -f "$EXP" "$OUT"
+run_strace_match_diff -a30 -P access_sample