Prettier output and some fixes (#4)
* feat: tab results * feat: more colors * style: norm * fix: patch a spacing bug * fix: patch a small issue * fix: patch some leaks * style: norm
This commit is contained in:
@@ -14,12 +14,12 @@
|
||||
|
||||
int test_sigbus(void)
|
||||
{
|
||||
char *cptr;
|
||||
int *iptr;
|
||||
char *cptr;
|
||||
int *iptr;
|
||||
|
||||
__asm__("pushf\norl $0x40000,(%rsp)\npopf");
|
||||
cptr = malloc(sizeof(int) + 1);
|
||||
iptr = (int *)++cptr;
|
||||
*iptr = 42;
|
||||
return (1);
|
||||
__asm__("pushf\norl $0x40000,(%rsp)\npopf");
|
||||
cptr = malloc(sizeof(int) + 1);
|
||||
iptr = (int *)++cptr;
|
||||
*iptr = 42;
|
||||
return (1);
|
||||
}
|
||||
|
||||
@@ -14,6 +14,6 @@
|
||||
|
||||
int test_sigkill(void)
|
||||
{
|
||||
raise(SIGKILL);
|
||||
return (1);
|
||||
raise(SIGKILL);
|
||||
return (1);
|
||||
}
|
||||
|
||||
@@ -14,6 +14,6 @@
|
||||
|
||||
int test_sigabrt(void)
|
||||
{
|
||||
raise(SIGABRT);
|
||||
return (1);
|
||||
raise(SIGABRT);
|
||||
return (1);
|
||||
}
|
||||
|
||||
@@ -14,6 +14,6 @@
|
||||
|
||||
int test_sigfpe(void)
|
||||
{
|
||||
raise(SIGFPE);
|
||||
return (1);
|
||||
raise(SIGFPE);
|
||||
return (1);
|
||||
}
|
||||
|
||||
@@ -14,6 +14,6 @@
|
||||
|
||||
int test_sigpipe(void)
|
||||
{
|
||||
raise(SIGPIPE);
|
||||
return (1);
|
||||
raise(SIGPIPE);
|
||||
return (1);
|
||||
}
|
||||
|
||||
@@ -12,7 +12,8 @@
|
||||
|
||||
int test_timeout(void)
|
||||
{
|
||||
while(1)
|
||||
{}
|
||||
return (1);
|
||||
while (1)
|
||||
{
|
||||
}
|
||||
return (1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user