1 #include <ccan/antithread/antithread.c>
3 #include <ccan/tap/tap.h>
5 static void *test(struct at_pool *atp, int *pid)
11 int main(int argc, char *argv[])
19 atp = at_pool(1*1024*1024);
21 pid = talloc(at_pool_ctx(atp), int);
23 ok1((char *)pid >= (char *)atp->p->pool
24 && (char *)pid < (char *)atp->p->pool + atp->p->poolsize);
25 at = at_run(atp, test, pid);
28 ok1(at_read(at) == NULL);
32 ok1(*pid != getpid());