From b6ce28993eb03f5821d0cc4db688b835b3a93ed2 Mon Sep 17 00:00:00 2001 From: Adriano dos Santos Fernandes Date: Wed, 16 Oct 2024 23:23:47 -0300 Subject: [PATCH] Correction in test. --- src/common/tests/StringTest.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/common/tests/StringTest.cpp b/src/common/tests/StringTest.cpp index 9a5dc7a7cb..08c7815f73 100644 --- a/src/common/tests/StringTest.cpp +++ b/src/common/tests/StringTest.cpp @@ -479,9 +479,9 @@ BOOST_AUTO_TEST_CASE(SubstrTest) BOOST_AUTO_TEST_CASE(LoadFromFileTest) { namespace fs = std::filesystem; - auto tempFilePath = fs::temp_directory_path() / "test.txt"; - const char* filename = tempFilePath.string().data(); - FILE *x = fopen(tempFilePath.string().data(), "w+"); + auto tempFilePath = (fs::temp_directory_path() / "test.txt").string(); + const char* filename = tempFilePath.data(); + FILE *x = fopen(tempFilePath.data(), "w+"); std::string_view line1 = "char lbl[] = \"0123456789\";"; std::string_view line2 = ""; // LoadFormFile read from '\n'