OSDN Git Service

Fix bad commit 23574 for io redirecting when running the test suite
authorHans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
Thu, 2 Oct 2008 14:15:05 +0000 (14:15 -0000)
committerHans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
Thu, 2 Oct 2008 14:15:05 +0000 (14:15 -0000)
This patch fixes the previous r23574 and uses a correct syntax for redirecting.

./foo > bar.out 2>&1

test/Test.mak

index c0c9996..e0200db 100644 (file)
@@ -59,7 +59,7 @@ define exec_test
        $(showtest)
        $(Q)\
        $(WRAPPER) $(WRAPPER_$(patsubst %_glibc,%,$(binary_name))) \
-       ./$(binary_name) $(OPTS) $(OPTS_$(patsubst %_glibc,%,$(binary_name))) > "$(binary_name).out" 2>> "$(binary_name).out" ; \
+       ./$(binary_name) $(OPTS) $(OPTS_$(patsubst %_glibc,%,$(binary_name))) > "$(binary_name).out" 2>&1 ; \
                ret=$$? ; \
                expected_ret="$(RET_$(patsubst %_glibc,%,$(binary_name)))" ; \
                test -z "$$expected_ret" && export expected_ret=0 ; \