[test] error code cross platform