mirror of
https://github.com/mutouyun/cpp-ipc.git
synced 2025-12-06 16:56:45 +08:00
22 lines
374 B
C++
22 lines
374 B
C++
|
|
#include <iostream>
|
|
#include <string>
|
|
|
|
#include "gtest/gtest.h"
|
|
|
|
#include "libimp/system.h"
|
|
#include "libimp/detect_plat.h"
|
|
#include "libimp/codecvt.h"
|
|
#include "libimp/fmt.h"
|
|
|
|
#if defined(LIBIMP_OS_WIN)
|
|
#include <Windows.h>
|
|
#else
|
|
#endif
|
|
|
|
TEST(system, conf) {
|
|
auto ret = imp::sys::conf(imp::sys::info::page_size);
|
|
EXPECT_TRUE(ret);
|
|
EXPECT_EQ(ret.value(), 4096);
|
|
}
|