Skip to content

Commit 5924515

Browse files
committed
Update systemtests.cpp
1 parent 0e22f9f commit 5924515

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/systemtests.cpp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,24 @@ TEST_F(SystemTest, Exec)
4949

5050
TEST_F(SystemTest, InhibitSuspend)
5151
{
52+
#ifdef __linux__
53+
if(!Environment::getVariable("GITHUB_ACTIONS").empty())
54+
{
55+
GTEST_SKIP();
56+
}
57+
#endif
5258
ASSERT_TRUE(SystemTest::m_inhibitor->inhibit());
5359
ASSERT_TRUE(SystemTest::m_inhibitor->isInhibiting());
5460
}
5561

5662
TEST_F(SystemTest, UninhibitSuspend)
5763
{
64+
#ifdef __linux__
65+
if(!Environment::getVariable("GITHUB_ACTIONS").empty())
66+
{
67+
GTEST_SKIP();
68+
}
69+
#endif
5870
ASSERT_TRUE(SystemTest::m_inhibitor->uninhibit());
5971
ASSERT_FALSE(SystemTest::m_inhibitor->isInhibiting());
6072
}

0 commit comments

Comments
 (0)