aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/test
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2020-10-16 23:45:36 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2020-10-16 23:45:36 +0300
commit73c5cc279f6252afcefd30b40d67b7bbb5b540de (patch)
tree4c03402c126ab54955e6bffcc3462105e2661db6 /test
parentCommandLine: saner API (diff)
downloadwinapi-common-73c5cc279f6252afcefd30b40d67b7bbb5b540de.tar.gz
winapi-common-73c5cc279f6252afcefd30b40d67b7bbb5b540de.zip
File: refactoring
Diffstat (limited to '')
-rw-r--r--test/unit_tests/process.cpp2
1 files changed, 1 insertions, 1 deletions
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");
}