Files
spdlog/tests
SamareshSingh 0209b12c50 tests: fix unit tests to not be affected by custom level names (#3492)
The unit tests were failing when users defined custom SPDLOG_LEVEL_NAMES
or SPDLOG_SHORT_LEVEL_NAMES in tweakme.h. This happened because the tests
expected the default level names but were getting the customized ones instead.

For example, with custom short names defined, the test would fail like this:
  REQUIRE( spdlog::level::to_string_view(spdlog::level::trace) == "trace" )
  with expansion: "TRC" == "trace"

This fix undefines these macros in tests/includes.h (right after setting
SPDLOG_ACTIVE_LEVEL) so that unit tests always use spdlog's default level
names, regardless of any customizations in tweakme.h.

Fixes #3466
2025-12-15 09:49:15 +02:00
..
2024-11-01 11:26:03 +02:00
2023-09-25 16:40:36 +03:00
2023-09-25 16:08:29 +03:00
2023-09-25 16:08:29 +03:00
2025-05-08 14:02:00 +03:00
2023-09-25 16:40:36 +03:00
2025-05-08 14:02:00 +03:00
2023-09-25 16:08:29 +03:00
2023-09-25 16:40:36 +03:00
2025-05-08 20:13:03 +03:00
2025-10-11 15:50:16 +03:00
2025-05-08 14:02:00 +03:00
2025-11-28 18:20:28 +02:00
2025-05-09 13:22:39 +03:00
2023-09-25 16:08:29 +03:00
2023-09-25 16:40:36 +03:00