mirror of
https://codeberg.org/la-chouette/minishell.git
synced 2025-12-06 07:28:09 +01:00
testutil: add leak check function
This commit is contained in:
parent
e2b6f6f943
commit
14dbabd6ea
2 changed files with 11 additions and 1 deletions
|
|
@ -22,3 +22,12 @@ void assert_strequal(char *str1, char *str2)
|
|||
ft_dprintf(STDERR_FILENO, "to eq \t[%s]\n", str2);
|
||||
assert(ret == 0);
|
||||
}
|
||||
|
||||
extern void __lsan_do_leak_check(void)
|
||||
__attribute__((weak));
|
||||
|
||||
void do_leak_check(void)
|
||||
{
|
||||
if (__lsan_do_leak_check != NULL)
|
||||
__lsan_do_leak_check();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue