Failure is double counted
xuyuji9000 opened this issue · comments
Testing shell:
GNU bash, version 4.2.46(2)-release (x86_64-redhat-linux-gnu)
Testing script:
#! /bin/sh
# file: examples/equality_test.sh
testEquality() {
assertEquals 1 1
}
testEquality2() {
assertEquals 1 2
}
. ../shunit2
Output:
[root@67087c3bc37c tmp]# ./test.sh
testEquality
testEquality2
ASSERT:expected:<1> but was:<2>
shunit2:ERROR testEquality2() returned non-zero return code.
Ran 2 tests.
FAILED (failures=2)
There should be only ONE failure, but the actually failures count is TWO.
Thank you for your contribution!