From a430cd7db62c38ef89eaace2c2bf27f68666b520 Mon Sep 17 00:00:00 2001 From: "Joachim Wuttke (h)" <j.wuttke@fz-juelich.de> Date: Wed, 25 Nov 2020 12:16:27 +0100 Subject: [PATCH] flush --- Tests/Functional/Python/Std/Check.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tests/Functional/Python/Std/Check.cpp b/Tests/Functional/Python/Std/Check.cpp index 0fd28cb7d1a..bfc97073bb1 100644 --- a/Tests/Functional/Python/Std/Check.cpp +++ b/Tests/Functional/Python/Std/Check.cpp @@ -30,7 +30,7 @@ std::unique_ptr<OutputData<double>> domainData(const std::string& test_name, FileSystemUtils::jointPath(BATesting::TestOutDir_PyStd(), test_name); const std::string output_path = output_name + ".ref.int.gz"; std::remove(output_path.c_str()); - std::cout << "- removed old output " << output_path << "\n"; + std::cout << "- removed old output " << output_path << std::endl; // Generate Python script const std::string pyscript_filename = @@ -50,7 +50,7 @@ std::unique_ptr<OutputData<double>> domainData(const std::string& test_name, + std::string("set NOPLOT=TRUE") + " & \"" + BABuild::pythonExecutable() + "\" -B " + py_command; #endif - std::cout << "- system call: " << sys_command << std::endl; // note: endl = \n + flush + std::cout << "- system call: " << sys_command << std::endl; // flushing is important here int ret = std::system(sys_command.c_str()); if (ret != 0) { std::stringstream msg; -- GitLab