ddnet/src/test/os.cpp

19 lines
318 B
C++
Raw Normal View History

2022-01-27 01:35:08 +00:00
#include "test.h"
#include <gtest/gtest.h>
#include <base/system.h>
TEST(Os, VersionStr)
{
char aVersion[128];
ASSERT_TRUE(os_version_str(aVersion, sizeof(aVersion)));
2022-01-27 01:35:08 +00:00
EXPECT_STRNE(aVersion, "");
}
TEST(Os, LocaleStr)
{
char aLocale[128];
os_locale_str(aLocale, sizeof(aLocale));
EXPECT_STRNE(aLocale, "");
}