From 8d11f7cd74968f5baffdbfde8b38d3197ef6865d Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Sun, 15 Mar 2015 21:15:41 -0400 Subject: [PATCH] tests: Use stderr redirection for time output Allows using Mac OS X time command in tests. Signed-off-by: Mathieu Desnoyers --- tests/benchmark/runtests-batch.sh | 4 ++-- tests/benchmark/runtests.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/benchmark/runtests-batch.sh b/tests/benchmark/runtests-batch.sh index 2da1401..3d295fb 100755 --- a/tests/benchmark/runtests-batch.sh +++ b/tests/benchmark/runtests-batch.sh @@ -6,7 +6,7 @@ log_file="runall.detail.log" # Check if time bin is non-empty if [ -n "$test_time_bin" ]; then - time_command="$test_time_bin -a -o $log_file" + time_command="$test_time_bin" else time_command="" fi @@ -14,6 +14,6 @@ fi #for a in test_urcu_gc test_urcu_gc_mb test_urcu_qsbr_gc; do for a in test_urcu_gc; do echo "./${a} $*" | tee -a "$log_file" - $time_command ./${a} $* + $time_command ./${a} $* 2>> $log_file done diff --git a/tests/benchmark/runtests.sh b/tests/benchmark/runtests.sh index 6001174..38e798c 100755 --- a/tests/benchmark/runtests.sh +++ b/tests/benchmark/runtests.sh @@ -6,7 +6,7 @@ log_file="runall.detail.log" # Check if time bin is non-empty if [ -n "$test_time_bin" ]; then - time_command="$test_time_bin -a -o $log_file" + time_command="$test_time_bin" else time_command="" fi @@ -16,6 +16,6 @@ for a in test_urcu_gc test_urcu_signal_gc test_urcu_mb_gc test_urcu_qsbr_gc \ test_urcu test_urcu_signal test_urcu_mb test_urcu_qsbr \ test_rwlock test_perthreadlock test_mutex; do echo "./${a} $*" | tee -a "$log_file" - $time_command ./${a} $* + $time_command ./${a} $* 2>> $log_file done -- 2.34.1