jehanne/qa/kern/notify.c

25 lines
276 B
C

#include <u.h>
#include <lib9.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");
}