From 7973293c311e27ff08a1488c9759c1b5b0fda30e Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Thu, 5 Jan 2023 13:55:20 +0100 Subject: Added tests --- tests/test-os.cpp | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'tests/test-os.cpp') 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 -#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); +} -- cgit v1.2.3