summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/shared/test-tables.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/shared/test-tables.h b/src/shared/test-tables.h
index 3ac8729d74..74f1716fe0 100644
--- a/src/shared/test-tables.h
+++ b/src/shared/test-tables.h
@@ -40,10 +40,9 @@ static inline void _test_table(const char *name,
rev = reverse("--no-such--value----");
printf("%s: %d → %s → %d\n", name, i, val, rev);
- if (i >= 0 && i < size ?
- sparse ? rev != i && rev != -1 : val == NULL || rev != i :
- val != NULL || rev != -1)
- exit(EXIT_FAILURE);
+ assert_se(!(i >= 0 && i < size ?
+ sparse ? rev != i && rev != -1 : val == NULL || rev != i :
+ val != NULL || rev != -1));
}
}