alelievr / libft-unit-test

455 stars 88 forks source link

ft_memmove.c / ft_strrchr.c test doesn't work on M1 Mac. #93

Open Two-Jay opened 3 years ago

Two-Jay commented 3 years ago
스크린샷 2021-01-16 오후 6 43 22

some of tests on memmove/strrchr doesn't work on M1 Mac. but it works on other OS (ubuntu / ssh on guacamole).

usatie commented 2 years ago

I have the same problem and it seems to be this library's problem. Because even when I comment out ft_memmove in the test, it still [CRASH]es.

Screen Shot 2022-04-20 at 10 41 07 Screen Shot 2022-04-20 at 10 43 03

However, when I comment out memset(data, 'A', size);, [CRASH] does not happen. So this line seems to be causing the [CRASH].

Screen Shot 2022-04-20 at 10 45 20 Screen Shot 2022-04-20 at 10 48 35
usatie commented 2 years ago

Even when ft_memmove does nothing, this test still [CRASH].

Screen Shot 2022-04-20 at 10 51 16 Screen Shot 2022-04-20 at 10 52 38
alvinyap510 commented 2 years ago

Encountered the same issue for my ft_memmove & ft_strrchr. Possible due to different compiler version / cpu architecture (ARM vs X86)?

github-actions[bot] commented 2 years ago

Hello! Thanks for contributing to the libft unit test.

Note that this repository is not maintained by the owner anymore, instead there is a bot that will automatically merge any reviewed pull requests. If you feel like it, here are some links that can help you submiting a change in the code base::