summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2010-10-24 01:48:11 -0400
committerTavian Barnes <tavianator@gmail.com>2010-10-24 01:48:11 -0400
commit37b23a043e6e06d74f12fb580eda67672d712321 (patch)
treec33b79c82f9d3a17d732d8ac9baa59ba0f0a9833
parentf020830fdb69968b46f24c48869635d28211963d (diff)
downloaddimension-37b23a043e6e06d74f12fb580eda67672d712321.tar.xz
Print something when warning test fails.
-rw-r--r--tests/libdimension/warning.c4
1 files changed, 4 insertions, 0 deletions
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;
}