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;