summaryrefslogtreecommitdiffstats
path: root/tests/libdimension/warning.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/libdimension/warning.c')
-rw-r--r--tests/libdimension/warning.c31
1 files changed, 2 insertions, 29 deletions
diff --git a/tests/libdimension/warning.c b/tests/libdimension/warning.c
index 915c97a..593fe84 100644
--- a/tests/libdimension/warning.c
+++ b/tests/libdimension/warning.c
@@ -1,5 +1,5 @@
/*************************************************************************
- * Copyright (C) 2009-2010 Tavian Barnes <tavianator@gmail.com> *
+ * Copyright (C) 2009-2011 Tavian Barnes <tavianator@gmail.com> *
* *
* This file is part of The Dimension Test Suite. *
* *
@@ -25,33 +25,6 @@
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;
- }
-
- dmnsn_error(DMNSN_SEVERITY_LOW, "This warning is expected.");
-
- dmnsn_set_resilience(DMNSN_SEVERITY_HIGH);
- if (dmnsn_get_resilience() != DMNSN_SEVERITY_HIGH) {
- fprintf(stderr, "--- Resilience not updated! ---\n");
- return EXIT_FAILURE;
- }
-
- dmnsn_error(DMNSN_SEVERITY_LOW, "This warning is expected.");
- dmnsn_error(DMNSN_SEVERITY_MEDIUM, "This warning is expected.");
-
+ dmnsn_warning("This warning is expected.");
return EXIT_SUCCESS;
}