The return code was wrong (it's always 0 when the test has run) plus in was misleading in case of a segfault.