summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/btree_test.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/btree_test.c b/test/btree_test.c
index 7c470c0..df44081 100644
--- a/test/btree_test.c
+++ b/test/btree_test.c
@@ -125,7 +125,9 @@ test_fail(ZixBTree* t, const char* fmt, ...)
static int
stress(const unsigned test_num, const size_t n_elems)
{
- assert(n_elems > 0);
+ if (n_elems == 0) {
+ return 0;
+ }
uintptr_t r = 0;
ZixBTree* t = zix_btree_new(int_cmp, NULL, NULL);