]> granicus.if.org Git - strace/commitdiff
tests: cleanup oldfstat.test
authorDmitry V. Levin <ldv@altlinux.org>
Thu, 30 Mar 2017 23:29:24 +0000 (23:29 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Thu, 30 Mar 2017 23:29:24 +0000 (23:29 +0000)
* tests/oldfstat.test: Use fstat.test.

tests/oldfstat.test

index 66a105612036cc4508317e859b27fb0f7775140d..cee37fbb450c3016799bf3b5becd749913f7bac6 100755 (executable)
@@ -1,19 +1,5 @@
 #!/bin/sh
 
-# Check oldfstat syscall decoding.
+# Check decoding of oldfstat syscall.
 
-. "${srcdir=.}/init.sh"
-
-# strace -P is implemented using /proc/self/fd
-[ -d /proc/self/fd/ ] ||
-       framework_skip_ '/proc/self/fd/ is not available'
-
-syscall=$NAME
-run_prog > /dev/null
-sample=$syscall.sample
-> "$sample"
-run_strace -ve$syscall -P$sample -a21 $args > "$OUT"
-match_diff "$LOG" "$OUT"
-rm -f "$OUT"
-
-exit 0
+. "${srcdir=.}/fstat.test"