Skip to content

Commit

Permalink
bugfix to ut
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin-f-ortega committed Jan 24, 2025
1 parent 93d71f9 commit 231befc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Os/Stub/test/ConditionVariable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ TestConditionVariable::~TestConditionVariable() {
TestConditionVariable::Status TestConditionVariable::pend(Os::Mutex& mutex) {
StaticData::data.lastCalled = StaticData::LastFn::WAIT_FN;
StaticData::data.passed = &mutex;
// Need to take mutex because we expect conditional var wait API to grab mutex
mutex.take();
return TestConditionVariable::Status::OP_OK;
}

Expand Down

0 comments on commit 231befc

Please sign in to comment.