Bah, looks like scripttest assumes a nonzero return code is an error unless you tell it not to. Who would have known (except someone who reads the docs :-()

I'll try to fix this, but I need to get tests working on Windows again before I can do so sensibly. Leaving this on hold in the meantime...