From 45d4f78e6a9b024e6f5285559f742c8e123e653c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ferm=C3=ADn=20Gal=C3=A1n=20M=C3=A1rquez?= Date: Thu, 6 Jun 2024 16:03:31 +0200 Subject: [PATCH] FIX set basic expr in utest --- test/unittests/common/commonMacroSubstitute_test.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/unittests/common/commonMacroSubstitute_test.cpp b/test/unittests/common/commonMacroSubstitute_test.cpp index be51a1e8af..90011a3708 100644 --- a/test/unittests/common/commonMacroSubstitute_test.cpp +++ b/test/unittests/common/commonMacroSubstitute_test.cpp @@ -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); @@ -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); @@ -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);