diff --git a/tests/parse_command_lists.c b/tests/parse_command_lists.c index 5678939..a477200 100644 --- a/tests/parse_command_lists.c +++ b/tests/parse_command_lists.c @@ -175,16 +175,25 @@ static void test_parse_command_list_invalid_pipeline(void) assert(cmd == NULL); } +extern void __lsan_do_leak_check(void); + int main(void) { test_parse_command_list_invalid_pipeline(); - + __lsan_do_leak_check(); test_parse_command_list_empty(); + __lsan_do_leak_check(); test_parse_command_list_single_pipeline(); + __lsan_do_leak_check(); test_parse_command_list_simple_and(); + __lsan_do_leak_check(); test_parse_command_list_simple_or(); + __lsan_do_leak_check(); test_parse_command_list_triple_or(); + __lsan_do_leak_check(); test_parse_command_list_triple_both_operators(); + __lsan_do_leak_check(); test_parse_command_list_quad_both_operators(); + __lsan_do_leak_check(); return (0); }