summaryrefslogtreecommitdiffstats
path: root/tests/warning.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/warning.c')
-rw-r--r--tests/warning.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/tests/warning.c b/tests/warning.c
index 9b8ba12..7b6aac3 100644
--- a/tests/warning.c
+++ b/tests/warning.c
@@ -25,18 +25,26 @@
int
main()
{
- if (dmnsn_get_resilience() != DMNSN_SEVERITY_MEDIUM) return EXIT_FAILURE;
+ if (dmnsn_get_resilience() != DMNSN_SEVERITY_MEDIUM) {
+ return EXIT_FAILURE;
+ }
dmnsn_set_resilience(DMNSN_SEVERITY_LOW);
- if (dmnsn_get_resilience() != DMNSN_SEVERITY_LOW) return EXIT_FAILURE;
+ if (dmnsn_get_resilience() != DMNSN_SEVERITY_LOW) {
+ return EXIT_FAILURE;
+ }
dmnsn_set_resilience(DMNSN_SEVERITY_MEDIUM);
- if (dmnsn_get_resilience() != DMNSN_SEVERITY_MEDIUM) return EXIT_FAILURE;
+ 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 EXIT_FAILURE;
+ 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.");