tests: do lsan test after each test case

This commit is contained in:
Khaïs COLIN 2025-03-04 13:31:22 +01:00 committed by Khaïs COLIN
parent 9ffde46adc
commit 5bf4bb8d6a

View file

@ -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);
}