From: Marek VavruĊĦa Date: Wed, 22 Apr 2015 19:39:49 +0000 (+0200) Subject: tests: test large arrays X-Git-Tag: v1.0.0-beta1~231^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=250b12d6ba2523d1247adb63057a5523a0ea0622;p=thirdparty%2Fknot-resolver.git tests: test large arrays --- diff --git a/tests/test_array.c b/tests/test_array.c index 5151a545f..8003700ab 100644 --- a/tests/test_array.c +++ b/tests/test_array.c @@ -46,6 +46,12 @@ static void test_array(void **state) assert_true(ret == 0); } + /* Overfill. */ + for (unsigned i = 0; i < 4096; ++i) { + ret = array_push(arr, i); + assert_true(ret >= 0); + } + array_clear(arr); }