aboutsummaryrefslogtreecommitdiff
path: root/src/google/protobuf/compiler/ruby/ruby_generator_unittest.cc
diff options
context:
space:
mode:
authorStephen Oberholtzer <stevie@qrpff.net>2018-07-19 21:30:27 -0400
committerStephen Oberholtzer <stevie@qrpff.net>2018-07-19 21:39:10 -0400
commitf5f1796c5d179c7444ab82f156747effa71d1434 (patch)
tree5e804a5de05ee447bb2c526dc964494670768cbe /src/google/protobuf/compiler/ruby/ruby_generator_unittest.cc
parentb1c550302207bf765628e8b1d76c520af70a54ba (diff)
downloadprotobuf-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/ruby/ruby_generator_unittest.cc')
-rw-r--r--src/google/protobuf/compiler/ruby/ruby_generator_unittest.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/google/protobuf/compiler/ruby/ruby_generator_unittest.cc b/src/google/protobuf/compiler/ruby/ruby_generator_unittest.cc
index 1aabe8aa..8454a5c5 100644
--- a/src/google/protobuf/compiler/ruby/ruby_generator_unittest.cc
+++ b/src/google/protobuf/compiler/ruby/ruby_generator_unittest.cc
@@ -90,12 +90,12 @@ TEST(RubyGeneratorTest, GeneratorTest) {
// Load the generated output and compare to the expected result.
string output;
- GOOGLE_CHECK_OK(File::GetContents(
+ GOOGLE_CHECK_OK(File::GetContentsAsText(
TestTempDir() + "/ruby_generated_code_pb.rb",
&output,
true));
string expected_output;
- GOOGLE_CHECK_OK(File::GetContents(
+ GOOGLE_CHECK_OK(File::GetContentsAsText(
ruby_tests + "/ruby_generated_code_pb.rb",
&expected_output,
true));