From 835951aa44c2f802b4d563d533eac34565848eb0 Mon Sep 17 00:00:00 2001 From: Dominic Hamon Date: Tue, 27 Apr 2021 16:54:53 +0100 Subject: [PATCH] Be compliant and return 0 from main. Fixes #713 --- include/benchmark/benchmark.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/benchmark/benchmark.h b/include/benchmark/benchmark.h index 44d023fd..881ce9e5 100644 --- a/include/benchmark/benchmark.h +++ b/include/benchmark/benchmark.h @@ -1301,6 +1301,7 @@ class Fixture : public internal::Benchmark { ::benchmark::Initialize(&argc, argv); \ if (::benchmark::ReportUnrecognizedArguments(argc, argv)) return 1; \ ::benchmark::RunSpecifiedBenchmarks(); \ + return 0; \ } \ int main(int, char**)