test: fix compatible issue to test on linux

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