BIND 10 trac976, updated. a4b89470c575878fbd0d3e1bddd45ed2a3289e6b [trac976] Suppress message output from shell-based tests

BIND 10 source code commits bind10-changes at lists.isc.org
Wed Jun 8 16:55:29 UTC 2011


The branch, trac976 has been updated
       via  a4b89470c575878fbd0d3e1bddd45ed2a3289e6b (commit)
      from  0c8063199fe37278da7fe03adb5723deb4263f82 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit a4b89470c575878fbd0d3e1bddd45ed2a3289e6b
Author: Stephen Morris <stephen at isc.org>
Date:   Wed Jun 8 17:54:52 2011 +0100

    [trac976] Suppress message output from shell-based tests

-----------------------------------------------------------------------

Summary of changes:
 src/lib/log/tests/Makefile.am        |    2 +-
 src/lib/log/tests/console_test.sh.in |    8 ++++----
 2 files changed, 5 insertions(+), 5 deletions(-)

-----------------------------------------------------------------------
diff --git a/src/lib/log/tests/Makefile.am b/src/lib/log/tests/Makefile.am
index b396e34..1822bb1 100644
--- a/src/lib/log/tests/Makefile.am
+++ b/src/lib/log/tests/Makefile.am
@@ -43,7 +43,7 @@ run_unittests_LDADD += $(top_builddir)/src/lib/exceptions/libexceptions.la
 run_unittests_LDADD += $(top_builddir)/src/lib/util/unittests/libutil_unittests.la
 endif
 
-TESTS += logger_example
+check_PROGRAMS = logger_example
 logger_example_SOURCES = logger_example.cc
 logger_example_CPPFLAGS = $(AM_CPPFLAGS) $(GTEST_INCLUDES)
 logger_example_LDFLAGS = $(AM_LDFLAGS) $(LOG4CPLUS_LDFLAGS)
diff --git a/src/lib/log/tests/console_test.sh.in b/src/lib/log/tests/console_test.sh.in
index bfc178b..7117a0c 100755
--- a/src/lib/log/tests/console_test.sh.in
+++ b/src/lib/log/tests/console_test.sh.in
@@ -37,22 +37,22 @@ passfail() {
 
 echo "1. Checking that console output to stdout goes to stdout:"
 rm -f $tempfile
-./logger_example -c stdout -s error 1> $tempfile
+./logger_example -c stdout -s error 1> $tempfile 2> /dev/null
 passfail 4
 
 echo "2. Checking that console output to stdout does not go to stderr:"
 rm -f $tempfile
-./logger_example -c stdout -s error 2> $tempfile
+./logger_example -c stdout -s error 1> /dev/null 2> $tempfile
 passfail 0
 
 echo "3. Checking that console output to stderr goes to stderr:"
 rm -f $tempfile
-./logger_example -c stderr -s error 2> $tempfile
+./logger_example -c stderr -s error 1> /dev/null 2> $tempfile
 passfail 4
 
 echo "4. Checking that console output to stderr does not go to stdout:"
 rm -f $tempfile
-./logger_example -c stderr -s error 1> $tempfile
+./logger_example -c stderr -s error 1> $tempfile 2> /dev/null
 passfail 0
 
 if [ $failcount -eq 0 ]; then




More information about the bind10-changes mailing list