Test should not be run if setup function fails
authorLukas Slebodnik <lslebodn@redhat.com>
Wed, 26 Feb 2014 12:45:02 +0000 (13:45 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Mon, 3 Mar 2014 08:58:23 +0000 (09:58 +0100)
commit70c723c5d39555f97cf37feb60255118ca68e14e
treed955af2093b7198fc0160e5e97f469daaddd3e49
parente6e99619e760076198281daa5042edb4f9840509
Test should not be run if setup function fails

Assertions are commonly used in setup function. If setup function fail
test should not be executed, because it may result into unexpected behaviour
(crash)

Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
src/cmocka.c
tests/CMakeLists.txt
tests/test_setup_fail.c [new file with mode: 0644]