From 2abfebd2a0d79a5cd5a7a846be7a156dcb1b7bf2 Mon Sep 17 00:00:00 2001 From: mutouyun Date: Sat, 13 Aug 2022 18:05:43 +0800 Subject: [PATCH] add: [test] try to print system error code --- test/test_imp_system.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/test_imp_system.cpp b/test/test_imp_system.cpp index c3d61d6..d89a3d7 100644 --- a/test/test_imp_system.cpp +++ b/test/test_imp_system.cpp @@ -1,5 +1,8 @@  +#include + #include "gtest/gtest.h" +#include "fmt/format.h" #include "libimp/system.h" #include "libimp/detect_plat.h" @@ -11,7 +14,7 @@ #endif TEST(system, error_code) { - EXPECT_TRUE(imp::sys::error_code()); + std::cout << fmt::format("{}\n", imp::sys::error_code()); imp::sys::error_code({false, 111}); auto err = imp::sys::error_code();