You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by fg...@apache.org on 2023/09/08 18:11:01 UTC
[nifi-minifi-cpp] 02/06: MINIFICPP-2208 Fix ConfigurationTests failure on ARM64
This is an automated email from the ASF dual-hosted git repository.
fgerlits pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/nifi-minifi-cpp.git
commit 59a5843edd259351eb3e68d75cd970022d022a84
Author: Martin Zink <ma...@apache.org>
AuthorDate: Thu Aug 31 10:16:49 2023 +0200
MINIFICPP-2208 Fix ConfigurationTests failure on ARM64
Signed-off-by: Ferenc Gerlits <fg...@gmail.com>
This closes #1644
---
extensions/standard-processors/tests/unit/ConfigurationTests.cpp | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/extensions/standard-processors/tests/unit/ConfigurationTests.cpp b/extensions/standard-processors/tests/unit/ConfigurationTests.cpp
index a6e2c04e7..426cc37ad 100644
--- a/extensions/standard-processors/tests/unit/ConfigurationTests.cpp
+++ b/extensions/standard-processors/tests/unit/ConfigurationTests.cpp
@@ -58,7 +58,8 @@ TEST_CASE("Configuration can fix misconfigured timeperiod<->integer validated pr
LogTestController::getInstance().setInfo<minifi::Configure>();
LogTestController::getInstance().setInfo<minifi::Properties>();
- auto properties_path = std::filesystem::temp_directory_path() / "test.properties";
+ TestController test_controller;
+ auto properties_path = test_controller.createTempDirectory() / "test.properties";
std::ofstream{properties_path}
<< "nifi.c2.agent.heartbeat.period=1min\n"
@@ -99,7 +100,8 @@ TEST_CASE("Configuration can fix misconfigured datasize<->integer validated prop
LogTestController::getInstance().setInfo<minifi::Configure>();
LogTestController::getInstance().setInfo<minifi::Properties>();
- auto properties_path = std::filesystem::temp_directory_path() / "test.properties";
+ TestController test_controller;
+ auto properties_path = test_controller.createTempDirectory() / "test.properties";
{
std::ofstream properties_file(properties_path);
@@ -135,7 +137,8 @@ TEST_CASE("Configuration can fix misconfigured datasize<->integer validated prop
TEST_CASE("Configuration can fix misconfigured validated properties within environmental variables") {
LogTestController::getInstance().setInfo<minifi::Configure>();
LogTestController::getInstance().setInfo<minifi::Properties>();
- auto properties_path = std::filesystem::temp_directory_path() / "test.properties";
+ TestController test_controller;
+ auto properties_path = test_controller.createTempDirectory() / "test.properties";
CHECK(minifi::utils::Environment::setEnvironmentVariable("SOME_VARIABLE", "4000"));