summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Hrozek <jakub.hrozek@posteo.se>2015-02-10 12:03:03 (GMT)
committerAndreas Schneider <asn@cryptomilk.org>2015-02-10 14:08:00 (GMT)
commit6545ee8e2b4324f4cc1d54dacac320831035c15a (patch)
tree52e705442505aa66c24c7da5fcae0dd9dadbb3c0
parentbdf5366ca650e5f4452d8a74320d4a524b935b7d (diff)
downloadcmocka-6545ee8e2b4324f4cc1d54dacac320831035c15a.zip
cmocka-6545ee8e2b4324f4cc1d54dacac320831035c15a.tar.gz
cmocka-6545ee8e2b4324f4cc1d54dacac320831035c15a.tar.bz2
cmocka: Print test errors directly to make them included in the XML output
Signed-off-by: Jakub Hrozek <jakub.hrozek@posteo.se>
-rw-r--r--src/cmocka.c2
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");
}
}