Commit 21b0e9d2 authored by Stephen Morris's avatar Stephen Morris
Browse files

[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.
parent ff69cf49
......@@ -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"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment