commit | 3ae982a4afdea61f4ee05f662634784aff0e899b | [log] [tgz] |
---|---|---|
author | Steven Moreland <smoreland@google.com> | Wed May 05 18:16:11 2021 +0000 |
committer | Steven Moreland <smoreland@google.com> | Wed May 05 18:19:11 2021 +0000 |
tree | 9a4751b6c29a7bccc41a7b1ad3ee4962c1644606 | |
parent | 67d502d84d93f760262540047704c43d722a0005 [diff] [blame] |
binderRpcBenchmark: main return 0 This main definition was copied from BENCHMARK_MAIN: // Helper macro to create a main routine in a test that runs the benchmarks #define BENCHMARK_MAIN() \ int main(int argc, char** argv) { \ ::benchmark::Initialize(&argc, argv); \ if (::benchmark::ReportUnrecognizedArguments(argc, argv)) return 1; \ ::benchmark::RunSpecifiedBenchmarks(); \ } \ int main(int, char**) This was fixed upstream, but it is still not merged into the Android: https://github.com/google/benchmark/commit/835951aa44c2f802b4d563d533eac34565848eb0 Bug: N/A Test: binderRpcBenchmark returns success error code Change-Id: Icd9f32c234500abd582f1cce7d0025e234943c17
diff --git a/libs/binder/tests/binderRpcBenchmark.cpp b/libs/binder/tests/binderRpcBenchmark.cpp index ce47c0d..f64bc5b 100644 --- a/libs/binder/tests/binderRpcBenchmark.cpp +++ b/libs/binder/tests/binderRpcBenchmark.cpp
@@ -134,4 +134,5 @@ success: ::benchmark::RunSpecifiedBenchmarks(); + return 0; }