Skip to content

Commit

Permalink
Merge pull request #4577 from telefonicaid/hardening/basic_expr_in_utest
Browse files Browse the repository at this point in the history
FIX set basic expr in utest
  • Loading branch information
mapedraza authored Jun 6, 2024
2 parents 47cefaa + 45d4f78 commit b8ee58d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/unittests/common/commonMacroSubstitute_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ TEST(commonMacroSubstitute, simple)
const char* correct = "Entity E1/T1, attribute 'attr1'";
std::string result;

ExprContextObject exprContext;
ExprContextObject exprContext(true);
exprContext.add("id", en.id);
exprContext.add("type", en.type);
exprContext.add(caP->name, caP->stringValue);
Expand Down Expand Up @@ -91,7 +91,7 @@ TEST(commonMacroSubstitute, withRealloc)
std::string correct = std::string(base) + "Now, finally something to substitute: Entity E1/T1, attribute 'attr1'";
std::string result;

ExprContextObject exprContext;
ExprContextObject exprContext(true);
exprContext.add("id", en.id);
exprContext.add("type", en.type);
exprContext.add(caP->name, caP->stringValue);
Expand Down Expand Up @@ -167,7 +167,7 @@ TEST(commonMacroSubstitute, bufferTooBigAfterSubstitution)
// correct = std::string(base) + "EntityId000001/EntityType000001"; // > 8MB after substitutions
std::string result;

ExprContextObject exprContext;
ExprContextObject exprContext(true);
exprContext.add("id", en.id);
exprContext.add("type", en.type);
exprContext.add(caP->name, caP->stringValue);
Expand Down

0 comments on commit b8ee58d

Please sign in to comment.