diff --git a/test/args_product_test.cc b/test/args_product_test.cc index 32a75d50dd..106857756c 100644 --- a/test/args_product_test.cc +++ b/test/args_product_test.cc @@ -74,4 +74,6 @@ BENCHMARK_REGISTER_F(ArgsProductFixture, Empty) ->ArgsProduct({{1, 2}, {15}, {3, 7, 10}, {8, 9}}) ->Args({4, 5, 6, 11}); +#if !defined(_MSC_VER) BENCHMARK_MAIN(); +#endif diff --git a/test/internal_threading_test.cc b/test/internal_threading_test.cc index 039d7c14a8..ad5d87dd80 100644 --- a/test/internal_threading_test.cc +++ b/test/internal_threading_test.cc @@ -181,4 +181,6 @@ BENCHMARK(BM_MainThreadAndWorkerThread) // ---------------------------- TEST CASES END ----------------------------- // // ========================================================================= // +#if !defined(_MSC_VER) int main(int argc, char* argv[]) { RunOutputTests(argc, argv); } +#endif diff --git a/test/link_main_test.cc b/test/link_main_test.cc index 241ad5c390..84d28f1e38 100644 --- a/test/link_main_test.cc +++ b/test/link_main_test.cc @@ -1,8 +1,8 @@ #include "benchmark/benchmark.h" -void BM_empty(benchmark::State& state) { +void BM_empty2(benchmark::State& state) { for (auto _ : state) { benchmark::DoNotOptimize(state.iterations()); } } -BENCHMARK(BM_empty); +BENCHMARK(BM_empty2);