mirror of
https://codeberg.org/la-chouette/minishell.git
synced 2025-12-06 07:28:09 +01:00
tests: do lsan test after each test case
This commit is contained in:
parent
9ffde46adc
commit
5bf4bb8d6a
1 changed files with 10 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue