benchmark/test
xdje42 ffc727a859
Verify RegisterProfilerManager doesn't overwrite an existing registration (#1837)
* Verify RegisterProfilerManager doesn't overwrite an existing registration

Tested:
Add a second registration to test/profiler_manager_test.cc and
verify the test crashes as expected.

* Verify RegisterProfilerManager doesn't overwrite an existing registration

Tested:
Configure with:
cmake -GNinja -DCMAKE_BUILD_TYPE=Debug -DBENCHMARK_DOWNLOAD_DEPENDENCIES=on
Then run:
ctest -R profiler_manager_gtest
Before change test fails (expected), after change test passes (expected)

---------

Co-authored-by: dominic <510002+dmah42@users.noreply.github.com>
2024-10-24 10:22:58 +01:00
..
AssemblyTests.cmake
BUILD upgrade bazel mods. requires c++14 for tests (#1867) 2024-10-23 10:27:18 +01:00
CMakeLists.txt Verify RegisterProfilerManager doesn't overwrite an existing registration (#1837) 2024-10-24 10:22:58 +01:00
args_product_test.cc Fix Clang-Tidy warnings related to modernize-use-override (#1523) 2023-01-09 17:52:18 +00:00
basic_test.cc Rewrite complexity_test to use (hardcoded) manual time (#1757) 2024-02-19 15:22:35 +00:00
benchmark_gtest.cc mitigate clang build warnings -Wconversion (#1763) 2024-03-07 12:19:56 +00:00
benchmark_min_time_flag_iters_test.cc Fix code triggering -Wsign-conversion (#1596) 2023-05-11 08:40:05 +01:00
benchmark_min_time_flag_time_test.cc Fix code triggering -Wsign-conversion (#1596) 2023-05-11 08:40:05 +01:00
benchmark_name_gtest.cc
benchmark_random_interleaving_gtest.cc
benchmark_setup_teardown_test.cc Fix typos found by codespell (#1519) 2023-01-10 12:25:32 +00:00
benchmark_test.cc Add `BENCHMARK_TEMPLATE[12]_CAPTURE`, fusion of `BENCHMARK_CAPTURE` and `BENCHMARK_TEMPLATE` (#1747) 2024-01-30 12:44:36 +00:00
clobber_memory_assembly_test.cc Address warnings on NVIDIA nvc++ (#1573) 2023-03-13 12:34:12 +00:00
commandlineflags_gtest.cc
complexity_test.cc mitigate clang build warnings -Wconversion (#1763) 2024-03-07 12:19:56 +00:00
cxx03_test.cc
diagnostics_test.cc Rewrite complexity_test to use (hardcoded) manual time (#1757) 2024-02-19 15:22:35 +00:00
display_aggregates_only_test.cc
donotoptimize_assembly_test.cc Address warnings on NVIDIA nvc++ (#1573) 2023-03-13 12:34:12 +00:00
donotoptimize_test.cc Fix pass rvalue to DoNotOptimize (#1608) 2023-06-19 08:35:52 +01:00
filter_test.cc Fix Clang-Tidy warnings related to modernize-use-override (#1523) 2023-01-09 17:52:18 +00:00
fixture_test.cc Fix Clang-Tidy warnings related to modernize-use-override (#1523) 2023-01-09 17:52:18 +00:00
internal_threading_test.cc
link_main_test.cc Rewrite complexity_test to use (hardcoded) manual time (#1757) 2024-02-19 15:22:35 +00:00
map_test.cc get rid of warnings in tests (#1562) 2023-03-06 14:47:54 +00:00
memory_manager_test.cc Rewrite complexity_test to use (hardcoded) manual time (#1757) 2024-02-19 15:22:35 +00:00
min_time_parse_gtest.cc Allow specifying number of iterations via --benchmark_min_time. (#1525) 2023-02-07 11:45:18 +00:00
multiple_ranges_test.cc Fix Clang-Tidy warnings related to modernize-use-override (#1523) 2023-01-09 17:52:18 +00:00
options_test.cc
output_test.h Convert uses of `const char*` to `std::string` (#1567) 2023-03-14 13:10:27 +00:00
output_test_helper.cc Make json and csv output consistent. (#1662) 2023-09-26 13:43:23 +01:00
perf_counters_gtest.cc Update perf_counters_gtest.cc (#1728) 2024-01-04 09:11:07 +00:00
perf_counters_test.cc Rewrite complexity_test to use (hardcoded) manual time (#1757) 2024-02-19 15:22:35 +00:00
profiler_manager_gtest.cc Verify RegisterProfilerManager doesn't overwrite an existing registration (#1837) 2024-10-24 10:22:58 +01:00
profiler_manager_test.cc Move ProfilerManager Start/Stop routines closer to actual benchmark #1807 (#1818) 2024-08-01 08:42:41 +01:00
register_benchmark_test.cc Convert uses of `const char*` to `std::string` (#1567) 2023-03-14 13:10:27 +00:00
repetitions_test.cc
report_aggregates_only_test.cc
reporter_output_test.cc Rewrite complexity_test to use (hardcoded) manual time (#1757) 2024-02-19 15:22:35 +00:00
skip_with_error_test.cc Rewrite complexity_test to use (hardcoded) manual time (#1757) 2024-02-19 15:22:35 +00:00
spec_arg_test.cc Fix Clang-Tidy warnings related to modernize-use-override (#1523) 2023-01-09 17:52:18 +00:00
spec_arg_verbosity_test.cc
state_assembly_test.cc
statistics_gtest.cc Support windows MSYS2 environments (#1704) 2023-11-23 17:47:04 +03:00
string_util_gtest.cc bug: Inconsistent suffixes console reporter 1009 (#1631) 2023-08-01 08:47:09 +01:00
templated_fixture_test.cc
time_unit_gtest.cc Fix Clang-Tidy warnings related to modernize-use-override (#1523) 2023-01-09 17:52:18 +00:00
user_counters_tabular_test.cc Rewrite complexity_test to use (hardcoded) manual time (#1757) 2024-02-19 15:22:35 +00:00
user_counters_test.cc Rewrite complexity_test to use (hardcoded) manual time (#1757) 2024-02-19 15:22:35 +00:00
user_counters_thousands_test.cc Add tests for Human Readable functionality (#1632) 2023-07-14 13:56:01 +01:00