"gcov -b" showed that range_set_destroy() was never called with a NULL
argument. There's no reason not to test that too (although of course it
is unlikely to be broken).
range_set_insert (rs, 1, 10);
pool_destroy (pool);
}
+
+/* Tests range_set_destroy(NULL). */
+static void
+test_destroy_null (void)
+{
+ range_set_destroy (NULL);
+}
\f
/* Main program. */
run_test (test_allocate, "allocate");
run_test (test_allocate_fully, "allocate_fully");
run_test (test_pool, "pool");
+ run_test (test_destroy_null, "destroy null");
putchar ('\n');
return 0;