Fixes for google3 build, and exclude even more tests from macOS to avoid timeout.

pull/13171/head
Joshua Haberman 4 years ago
parent a83d55ee4b
commit a01f3e23a4
  1. 6
      kokoro/ubuntu/build.sh
  2. 3
      upb/decode.int.h
  3. 3
      upbc/generator.cc

@ -20,9 +20,11 @@ cd $(dirname $0)/../..
if which gcc; then
gcc --version
CC=gcc bazel test --test_output=errors ...
CC=gcc bazel test -c opt --test_output=errors ... -- -benchmarks:benchmark
CC=gcc bazel test --test_output=errors ... --//:fasttable_enabled=true -- -cmake:test_generated_files -benchmarks:benchmark
if [[ $(uname) = "Linux" ]]; then
CC=gcc bazel test --test_output=errors ...
CC=gcc bazel test --test_output=errors ... --//:fasttable_enabled=true -- -cmake:test_generated_files -benchmarks:benchmark
fi
# TODO: work through these errors and enable this.
# if gcc -fanalyzer -x c /dev/null -c -o /dev/null; then
# CC=gcc bazel test --copt=-fanalyzer --test_output=errors ...

@ -10,7 +10,6 @@
#include "upb/msg.h"
#include "upb/upb.int.h"
#include "upb/decode_fast.h"
/* Must be last. */
#include "upb/port_def.inc"
@ -68,7 +67,7 @@ UPB_INLINE intptr_t decode_totable(const upb_msglayout *tablep) {
}
UPB_INLINE const upb_msglayout *decode_totablep(intptr_t table) {
return (void*)(table >> 8);
return (const upb_msglayout*)(table >> 8);
}
UPB_INLINE

@ -3,6 +3,7 @@
#include <memory>
#include "absl/base/attributes.h"
#include "absl/container/flat_hash_map.h"
#include "absl/strings/ascii.h"
#include "absl/strings/str_replace.h"
@ -803,7 +804,7 @@ bool TryFillTableEntry(const protobuf::Descriptor* message,
type = "s";
break;
}
/* Fallthrough. */
ABSL_FALLTHROUGH_INTENDED;
case protobuf::FieldDescriptor::TYPE_BYTES:
type = "b";
break;

Loading…
Cancel
Save