aboutsummaryrefslogtreecommitdiff
path: root/test/suites/api/test_memory_funcs.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/suites/api/test_memory_funcs.c')
-rw-r--r--test/suites/api/test_memory_funcs.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/suites/api/test_memory_funcs.c b/test/suites/api/test_memory_funcs.c
index 7cb4b73..02e450c 100644
--- a/test/suites/api/test_memory_funcs.c
+++ b/test/suites/api/test_memory_funcs.c
@@ -122,9 +122,16 @@ static void test_secure_funcs(void)
create_and_free_complex_object();
}
+static void test_bad_args(void)
+{
+ /* The result of this test is not crashing. */
+ json_get_alloc_funcs(NULL, NULL);
+}
+
static void run_tests()
{
test_simple();
test_secure_funcs();
test_oom();
+ test_bad_args();
}