redirect output of time to standard output stream
authorPaul Brossier <piem@altern.org>
Tue, 10 Oct 2006 13:13:51 +0000 (13:13 +0000)
committerPaul Brossier <piem@altern.org>
Tue, 10 Oct 2006 13:13:51 +0000 (13:13 +0000)
redirect output of time to standard output stream

examples/tests/Makefile.am

index 0ff3475..7c44abf 100644 (file)
@@ -30,7 +30,7 @@ bin_PROGRAMS = \
        test-tss
 
 run-tests: $(bin_PROGRAMS)
-       @for i in $(bin_PROGRAMS); do echo $$i; time (./$$i 2>&1 > /dev/null; echo $$?); done
+       @for i in $(bin_PROGRAMS); do echo $$i; ((time ./$$i 2>&1 > /dev/null) 2>&1; echo $$?); done
 
 run-valgrind-tests: $(bin_PROGRAMS)
        @for i in $(bin_PROGRAMS); do echo $$i; valgrind .libs/lt-$$i 2>&1 | grep ERROR\ SUMMARY -A4; echo $$?; done