From 73c5cc279f6252afcefd30b40d67b7bbb5b540de Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Fri, 16 Oct 2020 23:45:36 +0300 Subject: File: refactoring --- test/unit_tests/process.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/unit_tests/process.cpp b/test/unit_tests/process.cpp index aa09bf4..957a507 100644 --- a/test/unit_tests/process.cpp +++ b/test/unit_tests/process.cpp @@ -85,7 +85,7 @@ BOOST_FIXTURE_TEST_CASE(echo_stdout_to_file, WithEchoExe) { const auto process = Process::create(cmd_line, std::move(io)); process.wait(); BOOST_TEST(process.get_exit_code() == 0); - const auto output = File::open_for_reading(CanonicalPath{"test.txt"}).read(); + const auto output = File::open_r(CanonicalPath{"test.txt"}).read(); const auto utf8 = narrow(output); BOOST_TEST(utf8 == "XXX\r\nYYY\r\nZZZ\r\n"); } -- cgit v1.2.3