test: fix compatible issue when run test on linux

Signed-off-by: Jiang Xin <worldhello.net@gmail.com>