You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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
4 days ago
..
CMakeLists.txt Run tests in the order they are declared in the source file. (#3451) 4 months ago
includes.h tests: fix unit tests to not be affected by custom level names (#3492) 4 days ago
main.cpp Set IndentPPDirectives to "None" on clang-format 3 weeks ago
test_async.cpp Gabime/async flush (#3235) 1 year ago
test_backtrace.cpp update clang format again 2 years ago
test_bin_to_hex.cpp clang format 2 years ago
test_cfg.cpp Support custom environment variables for load_env_levels (#3327) 11 months ago
test_circular_q.cpp clang format 2 years ago
test_create_dir.cpp Set IndentPPDirectives to "None" on clang-format 3 weeks ago
test_custom_callbacks.cpp Feature 3379 (#3397) 7 months ago
test_daily_logger.cpp Set IndentPPDirectives to "None" on clang-format 3 weeks ago
test_dup_filter.cpp update clang format again 2 years ago
test_errors.cpp Fix typos found by codespell (#3011) 2 years ago
test_eventlog.cpp Set IndentPPDirectives to "None" on clang-format 3 weeks ago
test_file_helper.cpp Fix typos found by codespell (#3011) 2 years ago
test_file_logging.cpp Feature 3379 (#3397) 7 months ago
test_fmt_helper.cpp clang format 2 years ago
test_macros.cpp Set IndentPPDirectives to "None" on clang-format 3 weeks ago
test_misc.cpp Set IndentPPDirectives to "None" on clang-format 3 weeks ago
test_mpmc_q.cpp update clang format again 2 years ago
test_pattern_formatter.cpp Fix issue #3483 (#3491) 3 weeks ago
test_registry.cpp Fmt 11.2.0 (#3399) 7 months ago
test_ringbuffer.cpp clang-format 2 months ago
test_sink.h Feature 3379 (#3397) 7 months ago
test_stdout_api.cpp Fix issue #3483 (#3491) 3 weeks ago
test_stopwatch.cpp Update test_stopwatch.cpp 7 months ago
test_systemd.cpp clang format 2 years ago
test_time_point.cpp update clang format again 2 years ago
utils.cpp Set IndentPPDirectives to "None" on clang-format 3 weeks ago
utils.h Merge pull request #1414 from BioDataAnalysis/bda_tests_support_empty_eol 6 years ago