Skip to content

Commit

Permalink
Fixed UT (#2543)
Browse files Browse the repository at this point in the history
* Fixed UT

* Fix compare warning
  • Loading branch information
SMorettini authored Feb 26, 2024
1 parent ba30515 commit 24123d8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Svc/RateGroupDriver/test/ut/RateGroupDriverImplTester.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ namespace Svc {

void clearPortCalls();

bool m_portCalls[3];
bool m_portCalls[Svc::RateGroupDriver::DIVIDER_SIZE];

};

Expand Down
7 changes: 4 additions & 3 deletions Svc/RateGroupDriver/test/ut/RateGroupDriverTester.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@ static Fw::SimpleObjRegistry simpleReg;

void connectPorts(Svc::RateGroupDriver& impl, Svc::RateGroupDriverImplTester& tester) {

impl.set_CycleOut_OutputPort(0,tester.get_from_CycleOut(0));
impl.set_CycleOut_OutputPort(1,tester.get_from_CycleOut(1));
impl.set_CycleOut_OutputPort(2,tester.get_from_CycleOut(2));
for(NATIVE_UINT_TYPE i=0; i<Svc::RateGroupDriver::DIVIDER_SIZE; i++)
{
impl.set_CycleOut_OutputPort(i,tester.get_from_CycleOut(i));
}

tester.connect_to_CycleIn(0,impl.get_CycleIn_InputPort(0));
#if FW_PORT_TRACING
Expand Down

0 comments on commit 24123d8

Please sign in to comment.