Skip to content

Commit

Permalink
Fix PolyDb UT and spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-bc committed Jan 23, 2024
1 parent 1b67fd9 commit 42332a5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Fw/Types/test/ut/TypesTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1209,8 +1209,8 @@ TEST(TypesTest,ObjectNameTest) {
str3 += str2;
ASSERT_EQ(str3,"foo_bar");

str3 += "xyzz";
ASSERT_EQ(str3,"foo_barxyzz");
str3 += "_foo";
ASSERT_EQ(str3,"foo_bar_foo");


Fw::ObjectName copyStr("ASTRING");
Expand Down
4 changes: 2 additions & 2 deletions Svc/PolyDb/test/ut/PolyDbComponentTestAc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ namespace Svc {
this->m_getValue_OutputPort[port].init();
#if FW_OBJECT_NAMES == 1
char portName[120];
snprintf(portName, sizeof(portName), "%s_getValue_OutputPort[%d]", this->m_objName, port);
snprintf(portName, sizeof(portName), "%s_getValue_OutputPort[%d]", this->m_objName.toChar(), port);
this->m_getValue_OutputPort[port].setObjName(portName);
#endif
}
Expand All @@ -45,7 +45,7 @@ namespace Svc {
this->m_setValue_OutputPort[port].init();
#if FW_OBJECT_NAMES == 1
char portName[120];
snprintf(portName, sizeof(portName), "%s_setValue_OutputPort[%d]", this->m_objName, port);
snprintf(portName, sizeof(portName), "%s_setValue_OutputPort[%d]", this->m_objName.toChar(), port);
this->m_setValue_OutputPort[port].setObjName(portName);
#endif
}
Expand Down

0 comments on commit 42332a5

Please sign in to comment.