Skip to content

Commit b6ce289

Browse files
committed
Correction in test.
1 parent 46d8f5f commit b6ce289

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/common/tests/StringTest.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -479,9 +479,9 @@ BOOST_AUTO_TEST_CASE(SubstrTest)
479479
BOOST_AUTO_TEST_CASE(LoadFromFileTest)
480480
{
481481
namespace fs = std::filesystem;
482-
auto tempFilePath = fs::temp_directory_path() / "test.txt";
483-
const char* filename = tempFilePath.string().data();
484-
FILE *x = fopen(tempFilePath.string().data(), "w+");
482+
auto tempFilePath = (fs::temp_directory_path() / "test.txt").string();
483+
const char* filename = tempFilePath.data();
484+
FILE *x = fopen(tempFilePath.data(), "w+");
485485

486486
std::string_view line1 = "char lbl[] = \"0123456789\";";
487487
std::string_view line2 = ""; // LoadFormFile read from '\n'

0 commit comments

Comments
 (0)