libutil/test.c: fix error exit

Signed-off-by: Bao Haojun <baohaojun@gmail.com>