BIND 10 master, updated. 21b0e9d23d1c72940fb01f3dc9ad6c7975abaf5d [master] Fix test problem on systems such as OS X

BIND 10 source code commits bind10-changes at lists.isc.org
Fri Jun 3 11:27:47 UTC 2011


The branch, master has been updated
       via  21b0e9d23d1c72940fb01f3dc9ad6c7975abaf5d (commit)
      from  ff69cf49ecc375485209da7caabea778b5ff1ca2 (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 21b0e9d23d1c72940fb01f3dc9ad6c7975abaf5d
Author: Stephen Morris <stephen at isc.org>
Date:   Fri Jun 3 12:24:11 2011 +0100

    [master] Fix test problem on systems such as OS X
    
    On some systems, the output of "wc -l" is left-justified.  On
    others (the ones on which the test fails), the output is indented.
    Replacing "cut" with "awk" fixes this.

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

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

-----------------------------------------------------------------------
diff --git a/src/lib/log/tests/console_test.sh.in b/src/lib/log/tests/console_test.sh.in
index f941121..d6d97f6 100755
--- a/src/lib/log/tests/console_test.sh.in
+++ b/src/lib/log/tests/console_test.sh.in
@@ -26,7 +26,7 @@ tempfile=@abs_builddir@/console_test_tempfile_$$
 
 # Look at tempfile and check that the count equals the expected count
 passfail() {
-    count=`wc -l $tempfile | cut -f1 -d' '`
+    count=`wc -l $tempfile | awk '{print $1}'`
     if [ $count -eq $1 ]; then
         echo " -- pass"
     else




More information about the bind10-changes mailing list