summaryrefslogtreecommitdiffstats
path: root/tests/warning.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2009-06-22 21:56:03 +0000
committerTavian Barnes <tavianator@gmail.com>2009-06-22 21:56:03 +0000
commit6d693da568e2a629a391432e56a146ee7463e9a9 (patch)
tree0443325a632aa749b8bec476c99c7057c855b908 /tests/warning.c
parente32e140ef7a07037a785f18d48ae679ca941487a (diff)
downloaddimension-6d693da568e2a629a391432e56a146ee7463e9a9.tar.xz
Fix coding styles on tests.
Diffstat (limited to 'tests/warning.c')
-rw-r--r--tests/warning.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/tests/warning.c b/tests/warning.c
index 55735c4..7816cc8 100644
--- a/tests/warning.c
+++ b/tests/warning.c
@@ -19,24 +19,26 @@
*************************************************************************/
#include "../libdimension/dimension.h"
+#include <stdlib.h>
-int main()
+int
+main()
{
- if (dmnsn_get_resilience() != DMNSN_SEVERITY_MEDIUM) return 1;
+ if (dmnsn_get_resilience() != DMNSN_SEVERITY_MEDIUM) return EXIT_FAILURE;
dmnsn_set_resilience(DMNSN_SEVERITY_LOW);
- if (dmnsn_get_resilience() != DMNSN_SEVERITY_LOW) return 1;
+ if (dmnsn_get_resilience() != DMNSN_SEVERITY_LOW) return EXIT_FAILURE;
dmnsn_set_resilience(DMNSN_SEVERITY_MEDIUM);
- if (dmnsn_get_resilience() != DMNSN_SEVERITY_MEDIUM) return 1;
+ if (dmnsn_get_resilience() != DMNSN_SEVERITY_MEDIUM) 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) return 1;
+ if (dmnsn_get_resilience() != DMNSN_SEVERITY_HIGH) return EXIT_FAILURE;
dmnsn_error(DMNSN_SEVERITY_LOW, "This warning is expected.");
dmnsn_error(DMNSN_SEVERITY_MEDIUM, "This warning is expected.");
- return 0;
+ return EXIT_SUCCESS;
}