From 0a439427ee25913a2702eb2086f17a22da4ab832 Mon Sep 17 00:00:00 2001 From: mutouyun Date: Sat, 13 Aug 2022 18:39:47 +0800 Subject: [PATCH] fix: [test] error_msg for linux --- test/test_imp_system.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/test_imp_system.cpp b/test/test_imp_system.cpp index 6b5677c..711e3ea 100644 --- a/test/test_imp_system.cpp +++ b/test/test_imp_system.cpp @@ -52,6 +52,7 @@ TEST(system, error_msg) { EXPECT_EQ(imp::sys::error_msg({false, ERROR_INVALID_HANDLE}), s_txt); } #else - EXPECT_EQ(imp::sys::error_msg({false, 1234}), "Unknown error nnn"); + EXPECT_EQ(imp::sys::error_msg({}), ""); + EXPECT_EQ(imp::sys::error_msg({false, EINVAL}), ""); #endif } \ No newline at end of file