test: fix return value of trapped syscall

On some systems (Linux 3.8.11 armv7l), the return value of a trapped call
is {error,unknown}.

On other systems (Linux 3.13.0-24-generic x86_64), the return value is
{ok,<<>>}.

Could be a bug on ARM, but accomodate multiple return values for now.