summaryrefslogtreecommitdiffhomepage
path: root/tests/test-os.cpp
blob: 06eebc86abd85803bd6333dc23f3600f4319425c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#include <gtest/gtest.h>

#include "os.h"

class OSTest: public ::testing::Test
{
protected:
 OSTest(){
 }

 ~OSTest() override{
 }

 void SetUp() override
 {
 }

 void TearDown() override
 {
 }

};

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);
}