Unfortunately, now make verify fails on one earlier test:
array_sscanf("\1000\1001\2000","%[\1000-\1111]%s");
make[2]: *** [run_hilfe] Segmentation fault make[2]: Leaving directory `/home/nisse/hack/pike/build/linux-2.4.18nisse-i686' make[1]: *** [compile] Error 2 make[1]: Leaving directory `/home/nisse/hack/pike' make: *** [run_hilfe] Error 2
Does anybody else get that? I'll try a make clean and a recompile first.
/ Niels Möller (ny flexiblare bröstkorg)
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)