Ok, I think I almost understand the second example (but why does it use test_amny rather than test_equal?), but not the first one. What are the criteria for saying if the first test succeeded or failed?
/ Niels Möller (ny flexiblare bröstkorg)
Previous text:
2003-04-15 11:42: Subject: Starting new pike processes from the testsuite
Excerpts from the main testsuite.in:
test_do([[ // This is a memleak test rm("testsuite_test.pike"); Stdio.write_file("testsuite_test.pike", "constant Q=10000000000000000;\n" "int main() {}\n"); Process.system(RUNPIKE +" testsuite_test.pike"); rm("testsuite_test.pike"); ]])
test_any([[object p=Process.create_process(Process.split_quoted_string(RUNPIKE)+({"-e","exit(2)"})); sleep(10); return p->wait()]],2)
/ Henrik Grubbström (Lysator)