[PATCH] tests: filter strace output in uname test

Fei Jie feij.fnst at cn.fujitsu.com
Fri Mar 11 02:43:02 UTC 2016


* tests/uname.test: Use uniq to filter strace output.
---
 tests/uname.test | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/tests/uname.test b/tests/uname.test
index d11af15..500fbfe 100755
--- a/tests/uname.test
+++ b/tests/uname.test
@@ -4,8 +4,12 @@
 
 . "${srcdir=.}/init.sh"
 
+check_prog uniq
+
 run_prog > /dev/null
 OUT="$LOG.out"
+EXP="$LOG.exp"
 run_strace -v -euname $args >"$OUT"
-match_diff "$LOG" "$OUT"
-rm -f "$OUT"
+uniq "$LOG" "$EXP"
+match_diff "$EXP" "$OUT"
+rm -f "$EXP" "$OUT"
-- 
1.8.3.1







More information about the Strace-devel mailing list