From 1675b90d7187c2e1ccc0809defd379db1b02e8d1 Mon Sep 17 00:00:00 2001 From: Marcus Holland-Moritz Date: Sun, 13 Apr 2025 15:06:49 +0200 Subject: [PATCH] test: rename `filter_test` to `tool_filter_test` for uniqueness This is essential when building a monolithic test as it would otherwise collide with the `filter_test` from `dwarfs_test.cpp`. --- test/tool_main_test.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/tool_main_test.cpp b/test/tool_main_test.cpp index 3636607b..d6409708 100644 --- a/test/tool_main_test.cpp +++ b/test/tool_main_test.cpp @@ -1863,11 +1863,11 @@ std::map const debug_filter_modes{ } // namespace -class filter_test : public testing::TestWithParam< - std::tuple> { -}; +class tool_filter_test + : public testing::TestWithParam< + std::tuple> {}; -TEST_P(filter_test, debug_filter) { +TEST_P(tool_filter_test, debug_filter) { auto [data, mode] = GetParam(); auto t = mkdwarfs_tester::create_empty(); t.add_test_file_tree(); @@ -1880,7 +1880,7 @@ TEST_P(filter_test, debug_filter) { } INSTANTIATE_TEST_SUITE_P( - mkdwarfs_test, filter_test, + mkdwarfs_test, tool_filter_test, ::testing::Combine(::testing::ValuesIn(dwarfs::test::get_filter_tests()), ::testing::ValuesIn(debug_filter_mode_names)));