diff options
author | Jakub Hrozek <jakub.hrozek@posteo.se> | 2015-02-10 13:03:03 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2015-02-10 15:08:00 +0100 |
commit | 6545ee8e2b4324f4cc1d54dacac320831035c15a (patch) | |
tree | 52e705442505aa66c24c7da5fcae0dd9dadbb3c0 /src | |
parent | bdf5366ca650e5f4452d8a74320d4a524b935b7d (diff) | |
download | cmocka-6545ee8e2b4324f4cc1d54dacac320831035c15a.tar.gz cmocka-6545ee8e2b4324f4cc1d54dacac320831035c15a.tar.bz2 cmocka-6545ee8e2b4324f4cc1d54dacac320831035c15a.zip |
cmocka: Print test errors directly to make them included in the XML output
Signed-off-by: Jakub Hrozek <jakub.hrozek@posteo.se>
Diffstat (limited to 'src')
-rw-r--r-- | src/cmocka.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cmocka.c b/src/cmocka.c index f8cd201..26a268d 100644 --- a/src/cmocka.c +++ b/src/cmocka.c @@ -2405,6 +2405,7 @@ static int cmocka_run_one_tests(struct CMUnitTestState *test_state) test_state->check_point); if (rc != 0) { test_state->status = CM_TEST_ERROR; + cm_print_error("Test setup failed"); } } @@ -2444,6 +2445,7 @@ static int cmocka_run_one_tests(struct CMUnitTestState *test_state) test_state->check_point); if (rc != 0) { test_state->status = CM_TEST_ERROR; + cm_print_error("Test teardown failed"); } } |