]> granicus.if.org Git - strace/commitdiff
tests: cleanup access.test
authorDmitry V. Levin <ldv@altlinux.org>
Fri, 31 Mar 2017 23:25:32 +0000 (23:25 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Fri, 31 Mar 2017 23:25:32 +0000 (23:25 +0000)
* tests/access.test: Use run_strace_match_diff.
* tests/access.c (main): Update expected output.

tests/access.c
tests/access.test

index e6f169b268a2fd65ea11b998fe84b25c8394e830..4420ba3c3007b07d389cfcb0f1585f6f5760e5b9 100644 (file)
@@ -19,6 +19,7 @@ main(void)
        printf("access(\"%s\", R_OK|W_OK|X_OK) = %ld %s (%m)\n",
               sample, rc, errno2name());
 
+       puts("+++ exited with 0 +++");
        return 0;
 }
 
index 3ab2eb4bafef1dd33cd955b60bf300d466b35bb9..918fa6bbda0aa896422a7b7d8ff8e19dd00ed8c5 100755 (executable)
@@ -1,15 +1,7 @@
 #!/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