This is an automated email from the ASF dual-hosted git repository.

szaszm pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/nifi-minifi-cpp.git

commit ed27bf41c4cd83fae33cdbfaa8f96003dffac27a
Author: Adam Debreceni <[email protected]>
AuthorDate: Tue Aug 23 21:05:06 2022 +0200

    MINIFICPP-1918 Fix windows build
    
    Closes #1401
    Signed-off-by: Marton Szasz <[email protected]>
---
 extensions/script/tests/PythonManifestTests.cpp    | 4 ++--
 libminifi/test/flow-tests/TestControllerWithFlow.h | 6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/extensions/script/tests/PythonManifestTests.cpp 
b/extensions/script/tests/PythonManifestTests.cpp
index 2103b7b2f..9b0db0237 100644
--- a/extensions/script/tests/PythonManifestTests.cpp
+++ b/extensions/script/tests/PythonManifestTests.cpp
@@ -46,7 +46,7 @@ TEST_CASE("Python processor's description is part of the 
manifest") {
   TestControllerWithFlow controller(empty_flow, false /* DEFER FLOW SETUP */);
 
   auto python_dir = 
std::filesystem::path(controller.configuration_->getHome()) / "minifi-python";
-  utils::file::create_dir(python_dir);
+  utils::file::create_dir(python_dir.string());
   std::ofstream{python_dir / "MyPyProc.py"} <<
     "def describe(proc):\n"
     "  proc.setDescription('An amazing processor')\n";
@@ -57,7 +57,7 @@ TEST_CASE("Python processor's description is part of the 
manifest") {
     "  proc.setSupportsDynamicProperties()\n"
     "  proc.addProperty('Prop1', 'A great property', 'banana', True, False)\n";
 
-  
controller.configuration_->set(minifi::Configuration::nifi_python_processor_dir,
 python_dir);
+  
controller.configuration_->set(minifi::Configuration::nifi_python_processor_dir,
 python_dir.string());
   controller.configuration_->set(minifi::Configuration::nifi_extension_path, 
"*minifi-script*");
 
   
core::extension::ExtensionManager::get().initialize(controller.configuration_);
diff --git a/libminifi/test/flow-tests/TestControllerWithFlow.h 
b/libminifi/test/flow-tests/TestControllerWithFlow.h
index b87c76cb0..b834b8374 100644
--- a/libminifi/test/flow-tests/TestControllerWithFlow.h
+++ b/libminifi/test/flow-tests/TestControllerWithFlow.h
@@ -46,8 +46,8 @@ class TestControllerWithFlow: public TestController{
     std::ofstream{yaml_path_} << yamlConfigContent;
 
     configuration_ = std::make_shared<minifi::Configure>();
-    configuration_->setHome(home_);
-    configuration_->set(minifi::Configure::nifi_flow_configuration_file, 
yaml_path_);
+    configuration_->setHome(home_.string());
+    configuration_->set(minifi::Configure::nifi_flow_configuration_file, 
yaml_path_.string());
 
     if (setup_flow) {
       setupFlow();
@@ -62,7 +62,7 @@ class TestControllerWithFlow: public TestController{
     REQUIRE(content_repo->initialize(configuration_));
     std::shared_ptr<minifi::io::StreamFactory> stream_factory = 
minifi::io::StreamFactory::getInstance(configuration_);
 
-    auto flow = std::make_unique<core::YamlConfiguration>(prov_repo, ff_repo, 
content_repo, stream_factory, configuration_, yaml_path_);
+    auto flow = std::make_unique<core::YamlConfiguration>(prov_repo, ff_repo, 
content_repo, stream_factory, configuration_, yaml_path_.string());
     auto root = flow->getRoot();
     root_ = root.get();
     controller_ = std::make_shared<minifi::FlowController>(

Reply via email to