]> granicus.if.org Git - strace/blobdiff - tests/open.test
tests: factor out a part common to many simply organized test scripts
[strace] / tests / open.test
index ac891e3abcb11acb7e9b115eccb40ffae1db6eb5..6df19cb82003638824d477e18562ed7af425ae67 100755 (executable)
@@ -3,10 +3,4 @@
 # Check open syscall decoding.
 
 . "${srcdir=.}/init.sh"
-
-run_prog > /dev/null
-syscall=$NAME
-sample=$syscall.sample
-run_strace -a30 -e$syscall -P$sample $args > "$OUT"
-match_diff "$LOG" "$OUT"
-rm -f "$OUT"
+run_strace_match_diff -a30 -P $NAME.sample