Go in your libasm repository and :
git clone https://github.com/mli42/mlibasm_tester.git && cd ./mlibasm_tester/ && ./do.sh
To test errno
on ft_strdup
:
./strdup_kill
and see if errno == ENOMEM
Checks leaks by using /usr/bin/leaks
:
#define CHECKLEAKS 0
(in mlibasm.h
) to disable it
Good news : It will check only what you have coded and compiled with your Makefile
/!\ Warning: If it only prints the header, there is a compilation problem
Delete the redirections in do.sh
to see what's really happening
- ft_strlen
- ft_strcpy
- ft_strcmp
- ft_write
- ft_read
- ft_strdup
typedef struct s_list
{
void *data;
struct s_list *next;
} t_list;
- ft_atoi_base
- ft_list_push_front
- ft_list_size
- ft_list_sort
- ft_list_remove_if
kill_malloc
comes from this repo