feat/stdout (#3)
* feat: disable standard output for tests * fuck les fds * patch some complation issues * style: norm * feat: timeout * fix: patc more stuff * fix: patch merge * feat: more tests
This commit is contained in:
@@ -6,14 +6,20 @@
|
||||
/* By: elagouch <elagouch@student.42lyon.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2026/01/24 15:38:17 by elagouch #+# #+# */
|
||||
/* Updated: 2026/01/24 16:19:50 by elagouch ### ########.fr */
|
||||
/* Updated: 2026/01/25 15:22:52 by elagouch ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include <signal.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
int test_sigbus(void)
|
||||
{
|
||||
raise(SIGBUS);
|
||||
return (1);
|
||||
char *cptr;
|
||||
int *iptr;
|
||||
|
||||
__asm__("pushf\norl $0x40000,(%rsp)\npopf");
|
||||
cptr = malloc(sizeof(int) + 1);
|
||||
iptr = (int *)++cptr;
|
||||
*iptr = 42;
|
||||
return (1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user