Would something like this work?
test_do([[ object p = Process.spawn(RUNPIKE, "SRCDIR/https.pike"); sleep(5); /* Wait a little for the server to startup */ HTTP.Query q = HTTP.get_url("https://localhost:25678"); if (q->status != 200 || search("html", q->data()) < 0) error("Failed\n"); p->kill(); ]])
The sleep is ugly, perhaps one could hack https.pike to send some signal to its parent once it has bound the port.
/ Niels Möller (ny flexiblare bröstkorg)
Previous text:
2003-04-15 13:08: Subject: Starting new pike processes from the testsuite
test_do tests fail if they fail to compile or throw an error. I don't think the intention here is for the test to actually fail if there is a memleak, but just to get lots of output on stderr.
/ Marcus Comstedt (ACROSS) (Hail Ilpalazzo!)