Skip to content

Commit

Permalink
Fixing issues w.r.t. CI
Browse files Browse the repository at this point in the history
  • Loading branch information
LeStarch committed Sep 30, 2024
1 parent f51a9b6 commit 672c1af
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 16 deletions.
36 changes: 25 additions & 11 deletions Os/Generic/Types/test/ut/MaxHeap/MaxHeapTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,31 @@

TEST(Nominal, Creation) {
bool ret;
Types::MaxHeap heap;
ret = heap.create(0);
ASSERT_TRUE(ret);
ret = heap.create(1000000);
ASSERT_TRUE(ret);
ret = heap.create(1);
ASSERT_TRUE(ret);
ret = heap.create(DEPTH);
ASSERT_TRUE(ret);
ret = heap.create(DEPTH);
ASSERT_TRUE(ret);
{
Types::MaxHeap heap;
ret = heap.create(0);
ASSERT_TRUE(ret);
}
{
Types::MaxHeap heap;
ret = heap.create(1000000);
ASSERT_TRUE(ret);
}
{
Types::MaxHeap heap;
ret = heap.create(1);
ASSERT_TRUE(ret);
}
{
Types::MaxHeap heap;
ret = heap.create(DEPTH);
ASSERT_TRUE(ret);
}
{
Types::MaxHeap heap;
ret = heap.create(DEPTH);
ASSERT_TRUE(ret);
}
}

TEST(Nominal, Empty) {
Expand Down
2 changes: 1 addition & 1 deletion Os/Stub/test/ConditionVariable.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class TestConditionVariable : public ConditionVariableInterface {
TestConditionVariable();

//! \brief default destructor
virtual ~TestConditionVariable() override;
~TestConditionVariable() override;

//! \brief copy constructor is forbidden
TestConditionVariable(const ConditionVariableInterface& other) = delete;
Expand Down
2 changes: 1 addition & 1 deletion Os/Stub/test/ut/StubTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ TEST(Stub, Directory) {
int main(int argc, char** argv) {
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
}
2 changes: 1 addition & 1 deletion Os/test/ut/condition/ConditionRules.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,4 @@ struct NotifyAll : public ConcurrentRule<Os::Test::Condition::Tester> {
void action(Os::Test::Condition::Tester& state //!< The test state
) override;

};
};
4 changes: 2 additions & 2 deletions Os/test/ut/queue/QueueRules.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ struct SendNotFull : public STest::Rule<Os::Test::Queue::Tester> {
// ----------------------------------------------------------------------

//! Constructor
SendNotFull(bool end_check=true);
explicit SendNotFull(bool end_check=true);

// ----------------------------------------------------------------------
// Public member functions
Expand Down Expand Up @@ -89,7 +89,7 @@ struct ReceiveNotEmpty : public STest::Rule<Os::Test::Queue::Tester> {
// ----------------------------------------------------------------------

//! Constructor
ReceiveNotEmpty(bool end_check=true);
explicit ReceiveNotEmpty(bool end_check=true);

// ----------------------------------------------------------------------
// Public member functions
Expand Down

0 comments on commit 672c1af

Please sign in to comment.