What happens is port 25678 is already in use? (For instance, by another testsuite)
/ Fredrik (Naranek) Hubinette (Real Build Master)
Previous text:
2003-04-15 13:51: Subject: Starting new pike processes from the testsuite
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)