diff options
author | Stephen Oberholtzer <stevie@qrpff.net> | 2018-07-19 21:30:27 -0400 |
---|---|---|
committer | Stephen Oberholtzer <stevie@qrpff.net> | 2018-07-19 21:39:10 -0400 |
commit | f5f1796c5d179c7444ab82f156747effa71d1434 (patch) | |
tree | 5e804a5de05ee447bb2c526dc964494670768cbe /src/google/protobuf/compiler/cpp/cpp_bootstrap_unittest.cc | |
parent | b1c550302207bf765628e8b1d76c520af70a54ba (diff) | |
download | protobuf-f5f1796c5d179c7444ab82f156747effa71d1434.tar.gz protobuf-f5f1796c5d179c7444ab82f156747effa71d1434.tar.bz2 protobuf-f5f1796c5d179c7444ab82f156747effa71d1434.zip |
When running unit tests, read reference files in text mode
This should put an end to all of the reports of unit test failures on
Windows machines.
Diffstat (limited to 'src/google/protobuf/compiler/cpp/cpp_bootstrap_unittest.cc')
-rw-r--r-- | src/google/protobuf/compiler/cpp/cpp_bootstrap_unittest.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/google/protobuf/compiler/cpp/cpp_bootstrap_unittest.cc b/src/google/protobuf/compiler/cpp/cpp_bootstrap_unittest.cc index 4e150fe3..24f1fe45 100644 --- a/src/google/protobuf/compiler/cpp/cpp_bootstrap_unittest.cc +++ b/src/google/protobuf/compiler/cpp/cpp_bootstrap_unittest.cc @@ -95,7 +95,7 @@ class MockGeneratorContext : public GeneratorContext { string actual_contents; GOOGLE_CHECK_OK( - File::GetContents(TestSourceDir() + "/" + physical_filename, + File::GetContentsAsText(TestSourceDir() + "/" + physical_filename, &actual_contents, true)); EXPECT_TRUE(actual_contents == *expected_contents) << physical_filename |