From c2640c0629cfe3930aa04ed8f27d8a905f5fae2c Mon Sep 17 00:00:00 2001 From: gangatp Date: Wed, 13 Dec 2023 19:52:17 +0530 Subject: [PATCH] using locv ignore errors --- .../NMR_ModelReaderNode_KeyStoreCipherValue.cpp | 1 + Tests/CPP_Bindings/Source/UnitTest_EncryptionUtils.cpp | 2 +- Tests/codecoverage/run_codecoverage.sh | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Source/Model/Reader/SecureContent101/NMR_ModelReaderNode_KeyStoreCipherValue.cpp b/Source/Model/Reader/SecureContent101/NMR_ModelReaderNode_KeyStoreCipherValue.cpp index 5a82e690a..d9438744d 100644 --- a/Source/Model/Reader/SecureContent101/NMR_ModelReaderNode_KeyStoreCipherValue.cpp +++ b/Source/Model/Reader/SecureContent101/NMR_ModelReaderNode_KeyStoreCipherValue.cpp @@ -42,6 +42,7 @@ NMR_ModelReaderNode_KeyStoreCipherValue.h defines the Model Reader Node class th #include "Model/Reader/NMR_ModelReaderNode_StringValue.h" #include "base64.h" +#include namespace NMR { diff --git a/Tests/CPP_Bindings/Source/UnitTest_EncryptionUtils.cpp b/Tests/CPP_Bindings/Source/UnitTest_EncryptionUtils.cpp index 45a5f7458..c249fa3e4 100644 --- a/Tests/CPP_Bindings/Source/UnitTest_EncryptionUtils.cpp +++ b/Tests/CPP_Bindings/Source/UnitTest_EncryptionUtils.cpp @@ -289,7 +289,7 @@ void EncryptionCallbacks::keyDecryptClientCallback( *status = 0; else if (nullptr == plainBuffer || 0 == plainSize) { // plainNeeded should be bigger than the plain text size for padding cases to avoid mem leak. - *plainNeeded = RsaMethods::getSize(context->key) - 42; + *plainNeeded = RsaMethods::getSize(context->key) - 42; *status = 32; } else { diff --git a/Tests/codecoverage/run_codecoverage.sh b/Tests/codecoverage/run_codecoverage.sh index 60cc31466..76be1f7fc 100755 --- a/Tests/codecoverage/run_codecoverage.sh +++ b/Tests/codecoverage/run_codecoverage.sh @@ -1,9 +1,9 @@ cd build -lcov --capture --initial --directory . --output-file Test_CPP_Bindings_base.info +lcov --capture --initial --directory --ignore-errors gcov,inconsistent . --output-file Test_CPP_Bindings_base.info ./Test_CPP_Bindings -lcov --directory . --capture --output-file Test_CPP_Bindings_run.info +lcov --directory . --capture --ignore-errors gcov,inconsistent --output-file Test_CPP_Bindings_run.info lcov --add-tracefile Test_CPP_Bindings_base.info --add-tracefile Test_CPP_Bindings_run.info --output-file Test_CPP_Bindings.info TARGETDIR=`dirname \`pwd\``