Line data Source code
1 : // SPDX-License-Identifier: GPL-3.0-or-later 2 : // Copyright 2021, CZ.NIC z.s.p.o. (http://www.nic.cz/) 3 : #include <errno.h> 4 : #include <check.h> 5 : #include "fixtures.h" 6 : 7 : struct obstack t_obstack; 8 : 9 : 10 0 : void basic_setup() { 11 0 : obstack_init(&t_obstack); 12 : 13 0 : errno = 0; // Set to 0 to reset any previous possible error 14 0 : } 15 : 16 0 : void basic_teardown() { 17 0 : ck_assert_int_eq(errno, 0); 18 : 19 0 : obstack_free(&t_obstack, NULL); 20 0 : }