From d2a5c755e032a148fa3170aef23d72853abd98e0 Mon Sep 17 00:00:00 2001 From: Tink Team Date: Wed, 3 Jan 2024 00:51:26 -0800 Subject: [PATCH] Internal Code Change PiperOrigin-RevId: 595321607 Change-Id: Ice9e39b9bb3711384a6edd2d589a453bed371d68 --- tink/util/istream_input_stream_test.cc | 2 +- tink/util/test_util.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tink/util/istream_input_stream_test.cc b/tink/util/istream_input_stream_test.cc index de5c44ff..a3e69e3c 100644 --- a/tink/util/istream_input_stream_test.cc +++ b/tink/util/istream_input_stream_test.cc @@ -54,7 +54,7 @@ std::unique_ptr GetTestIstream(absl::string_view filename, std::ofstream output (full_filename, std::ofstream::binary); if (!output.write(file_contents->data(), size) || output.tellp() != size) { std::clog << "Failed to write " << size << " bytes to file " - << full_filename << " error: " << errno << std::endl; + << full_filename << " error: " << errno << '\n'; exit(1); } diff --git a/tink/util/test_util.cc b/tink/util/test_util.cc index 57969cc3..421bc054 100644 --- a/tink/util/test_util.cc +++ b/tink/util/test_util.cc @@ -77,7 +77,7 @@ std::string ReadTestFile(absl::string_view filename) { std::string full_filename = absl::StrCat(test::TmpDir(), "/", filename); std::ifstream input_stream(full_filename, std::ios::binary); if (!input_stream) { - std::clog << "Cannot open file " << full_filename << std::endl; + std::clog << "Cannot open file " << full_filename << '\n'; exit(1); } std::stringstream buffer;