test-lib.sh: Let expected failures that don't fail cause the test to fail
commit95c60f8d4b269d1ccb6704870f21ad72efe7bbe7
authorKarl Wiberg <kha@treskal.com>
Tue, 24 Sep 2013 23:26:07 +0000 (25 01:26 +0200)
committerKarl Wiberg <kha@treskal.com>
Tue, 24 Sep 2013 23:55:36 +0000 (25 01:55 +0200)
treeb794d0d0a3ae434cfdd236d629091de925dcfd62
parent0fca71cee44f5814a2e68ca61d6d20b1ac937f28
test-lib.sh: Let expected failures that don't fail cause the test to fail

With this patch, a test with expected failures that don't fail as
expected will return 1 instead of 0. This makes it possible for the
caller (e.g. make, in the case of "make test") to detect the
irregularity and point it out to the user.

Signed-off-by: Karl Wiberg <kha@treskal.com>
t/test-lib.sh