diff options
Diffstat (limited to 'tests/test-os.cpp')
-rw-r--r-- | tests/test-os.cpp | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/tests/test-os.cpp b/tests/test-os.cpp index 6177bfa..06eebc8 100644 --- a/tests/test-os.cpp +++ b/tests/test-os.cpp @@ -1,14 +1,14 @@ #include <gtest/gtest.h> -#include "file.h" +#include "os.h" -class OsTest: public ::testing::Test +class OSTest: public ::testing::Test { protected: - OsTest(){ + OSTest(){ } - ~OsTest() override{ + ~OSTest() override{ } void SetUp() override @@ -20,3 +20,11 @@ protected: } }; + +TEST_F(OSTest,uptime_host) { + EXPECT_GT(Reichwein::OS::uptime_host().size(), 0); +} + +TEST_F(OSTest,uptime_process) { + EXPECT_GT(Reichwein::OS::uptime_process().size(), 0); +} |