From f56323f1ccd78207a75afa62369f7306d06051c1 Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Sat, 4 Jun 2016 23:40:40 +0000 Subject: [PATCH] tests/strace-S.test: fix testing 64-bit strace using a 32-bit userspace * tests/strace-S.test: Measure wall clock time instead of system time. Use local "./readv" instead of system "date" as a sample executable. Reported-by: Steve McIntyre --- tests/strace-S.test | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/strace-S.test b/tests/strace-S.test index c0e95498..44c15ccd 100755 --- a/tests/strace-S.test +++ b/tests/strace-S.test @@ -4,7 +4,7 @@ . "${srcdir=.}/init.sh" -run_prog_skip_if_failed date > /dev/null +run_prog ./readv > /dev/null test_c() { @@ -13,7 +13,7 @@ test_c() sortopts="$1"; shift sedexpr="$1"; shift - run_strace -c -S "$sortby" date > /dev/null + run_strace -c -w -S "$sortby" ./readv > /dev/null sed -ne "$sedexpr" < "$LOG" > "$OUT" [ -s "$OUT" ] || -- 2.40.0