1 #include <ccan/antithread/antithread.c>
3 #include <ccan/tap/tap.h>
5 static void *test(struct at_pool *atp, int *pid)
8 at_tell_parent(atp, test);
12 int main(int argc, char *argv[])
20 atp = at_pool(1*1024*1024);
22 pid = talloc(at_pool_ctx(atp), int);
24 ok1((char *)pid >= (char *)atp->p->pool
25 && (char *)pid < (char *)atp->p->pool + atp->p->poolsize);
26 at = at_run(atp, test, pid);
29 ok1(at_read(at) == test);
33 ok1(*pid != getpid());