From 37b23a043e6e06d74f12fb580eda67672d712321 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sun, 24 Oct 2010 01:48:11 -0400 Subject: Print something when warning test fails. --- tests/libdimension/warning.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/libdimension') diff --git a/tests/libdimension/warning.c b/tests/libdimension/warning.c index d221076..915c97a 100644 --- a/tests/libdimension/warning.c +++ b/tests/libdimension/warning.c @@ -26,16 +26,19 @@ int main(void) { if (dmnsn_get_resilience() != DMNSN_SEVERITY_MEDIUM) { + fprintf(stderr, "--- Wrong default resilience! ---\n"); return EXIT_FAILURE; } dmnsn_set_resilience(DMNSN_SEVERITY_LOW); if (dmnsn_get_resilience() != DMNSN_SEVERITY_LOW) { + fprintf(stderr, "--- Resilience not updated! ---\n"); return EXIT_FAILURE; } dmnsn_set_resilience(DMNSN_SEVERITY_MEDIUM); if (dmnsn_get_resilience() != DMNSN_SEVERITY_MEDIUM) { + fprintf(stderr, "--- Resilience not updated! ---\n"); return EXIT_FAILURE; } @@ -43,6 +46,7 @@ main(void) dmnsn_set_resilience(DMNSN_SEVERITY_HIGH); if (dmnsn_get_resilience() != DMNSN_SEVERITY_HIGH) { + fprintf(stderr, "--- Resilience not updated! ---\n"); return EXIT_FAILURE; } -- cgit v1.2.3