jehanne/qa/kern/notify.c
Giacomo Tesio 38aca7a581 first usable version of kernel and commands
After an year of hard work, this is a first "usable" version of Jehanne.
2016-11-26 03:49:29 +01:00

25 lines
276 B
C

#include <u.h>
#include <libc.h>
#define RET 0xc3
void
handler(void *v, char *s)
{
print("PASS\n");
exits("PASS");
}
void
main(void)
{
void (*f)(void) = nil;
if (notify(handler)){
fprint(2, "%r\n");
exits("notify fails");
}
f();
print("FAIL");
exits("FAIL");
}