mirror of
https://github.com/mutouyun/cpp-ipc.git
synced 2025-12-06 16:56:45 +08:00
add: [test] try to print system error code
This commit is contained in:
parent
01c28816a2
commit
2abfebd2a0
@ -1,5 +1,8 @@
|
|||||||
|
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
#include "gtest/gtest.h"
|
#include "gtest/gtest.h"
|
||||||
|
#include "fmt/format.h"
|
||||||
|
|
||||||
#include "libimp/system.h"
|
#include "libimp/system.h"
|
||||||
#include "libimp/detect_plat.h"
|
#include "libimp/detect_plat.h"
|
||||||
@ -11,7 +14,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
TEST(system, error_code) {
|
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});
|
imp::sys::error_code({false, 111});
|
||||||
auto err = imp::sys::error_code();
|
auto err = imp::sys::error_code();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user