diff options
author | 2018-07-09 16:06:26 +0200 | |
---|---|---|
committer | 2018-07-09 16:06:26 +0200 | |
commit | 868060b2925a98a22c4a2e760dd38da0bef6146c (patch) | |
tree | 8cadd68b0503dae8605144feaa3fba1b20804821 /src/test | |
parent | a2cac548616e6e6f433df27146c2971f352a4041 (diff) |
Revert "Update protobuf to 3.6.0. Fixes #5439"
This reverts commit a2cac548616e6e6f433df27146c2971f352a4041.
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/java/com/google/devtools/build/lib/rules/cpp/BUILD | 2 | ||||
-rwxr-xr-x | src/test/shell/integration/bazel_command_log_test.sh | 18 | ||||
-rwxr-xr-x | src/test/shell/testenv.sh | 2 |
3 files changed, 2 insertions, 20 deletions
diff --git a/src/test/java/com/google/devtools/build/lib/rules/cpp/BUILD b/src/test/java/com/google/devtools/build/lib/rules/cpp/BUILD index 8fa0c86c49..fe502fd67e 100644 --- a/src/test/java/com/google/devtools/build/lib/rules/cpp/BUILD +++ b/src/test/java/com/google/devtools/build/lib/rules/cpp/BUILD @@ -83,7 +83,7 @@ java_library( "//third_party:junit4", "//third_party:truth", "//third_party/java/dd_plist", - "//third_party/protobuf:protobuf_java", + "//third_party/protobuf/3.4.0:protobuf_java", ], ) diff --git a/src/test/shell/integration/bazel_command_log_test.sh b/src/test/shell/integration/bazel_command_log_test.sh index 3e7443c353..91294daa89 100755 --- a/src/test/shell/integration/bazel_command_log_test.sh +++ b/src/test/shell/integration/bazel_command_log_test.sh @@ -46,29 +46,12 @@ function strip_lines_from_bazel_cc() { echo "$clean_log" > $TEST_log } -function strip_protobuf_unsafe_warning() { - # TODO: Protobuf triggers illegal reflective access warning in JDK 9. - # Remove this workaround when protobuf fixes this. - # See https://github.com/google/protobuf/issues/3781 - clean_log=$(\ - sed \ - -e "/^WARNING: An illegal reflective access operation has occurred/d" \ - -e "/^WARNING: Illegal reflective access by com\.google\.protobuf\.UnsafeUtil /d" \ - -e "/^WARNING: Please consider reporting this to the maintainers of com\.google\.protobuf\.UnsafeUtil/d" \ - -e "/^WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations/d" \ - -e "/^WARNING: All illegal access operations will be denied in a future release/d" \ - $TEST_log) - - echo "$clean_log" > $TEST_log -} - function test_batch_mode() { # capture stdout/stderr in $TEST_log bazel --batch info >&$TEST_log || fail "Expected success" # strip extra lines printed by bazel.cc strip_lines_from_bazel_cc - strip_protobuf_unsafe_warning # compare $TEST_log with command.log assert_equals "" "$(diff $TEST_log $log 2>&1)" @@ -85,7 +68,6 @@ function test_batch_mode_with_logging_flag() { # strip extra lines printed by bazel.cc strip_lines_from_bazel_cc - strip_protobuf_unsafe_warning # compare $TEST_log with command.log assert_equals "" "$(diff $TEST_log $log 2>&1)" diff --git a/src/test/shell/testenv.sh b/src/test/shell/testenv.sh index c4a0c5599d..b2f6e24147 100755 --- a/src/test/shell/testenv.sh +++ b/src/test/shell/testenv.sh @@ -115,7 +115,7 @@ if [ "${MACHINE_TYPE}" = 's390x' ]; then fi # Requires //third_party/protobuf:protoc -protoc_compiler="${BAZEL_RUNFILES}/third_party/protobuf/3.6.0/protoc" +protoc_compiler="${BAZEL_RUNFILES}/third_party/protobuf/3.4.0/protoc" if [ -z ${RUNFILES_MANIFEST_ONLY+x} ]; then junit_jar="${BAZEL_RUNFILES}/third_party/junit/junit-*.jar" |