]> arthur.barton.de Git - bup.git/commit
t/test-on.sh: Don't quote "wc -l" output
authorAlexander Barton <alex@barton.de>
Wed, 25 Feb 2015 14:28:21 +0000 (15:28 +0100)
committerRob Browning <rlb@defaultvalue.org>
Sat, 7 Mar 2015 18:27:57 +0000 (12:27 -0600)
commit2c2c28e4a3d21f0c5497f69cac2dd45b929f2e69
treee0116dd53d9c965c1f5da34b4df6a1608fe23ae4
parent81ffb830a2fec70a8346142f6396309e3b635e5d
t/test-on.sh: Don't quote "wc -l" output

Some wc(1) implementations, for example on OS X, prefix the numeric
output with spaces. So don't quote this output (and don't treat it
as a string) to not confuse WVPASSEQ.

This fixes the following error of "make check":

Comparing:
       2
--
2
! t/test-on.sh:25  ' 2' = '2'                     FAILED
 2.108s ok
called from t/test-on.sh:25 WVPASSEQ        2 2
make[1]: *** [runtests-cmdline] Error 1
! Program returned non-zero exit code (2)         FAILED
WvTest: 3007 tests, 1 failure, total time 84.013s.

Reported by Pedro Estarque, thanks!

Signed-off-by: Alexander Barton <alex@barton.de>
[rlb@defaultvalue.org: adjust commit message; add WVPASS calls]
Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
t/test-on.sh