Skip to content

Commit

Permalink
Update systemtests.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
nlogozzo committed Jul 8, 2024
1 parent 0e22f9f commit 5924515
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/systemtests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,24 @@ TEST_F(SystemTest, Exec)

TEST_F(SystemTest, InhibitSuspend)
{
#ifdef __linux__
if(!Environment::getVariable("GITHUB_ACTIONS").empty())
{
GTEST_SKIP();
}
#endif
ASSERT_TRUE(SystemTest::m_inhibitor->inhibit());
ASSERT_TRUE(SystemTest::m_inhibitor->isInhibiting());
}

TEST_F(SystemTest, UninhibitSuspend)
{
#ifdef __linux__
if(!Environment::getVariable("GITHUB_ACTIONS").empty())
{
GTEST_SKIP();
}
#endif
ASSERT_TRUE(SystemTest::m_inhibitor->uninhibit());
ASSERT_FALSE(SystemTest::m_inhibitor->isInhibiting());
}
Expand Down

0 comments on commit 5924515

Please sign in to comment.