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
gabime
b3688ba102
Set IndentPPDirectives to "None" on clang-format
2025-11-28 18:41:08 +02:00
captainurist
5673e9e545
utf8_to_wstrbuf now handles invalid utf8 sequences ( #3244 )
2024-11-05 22:54:01 +02:00
allen_qfl
362214a349
fix/issue-3101: fix the issue where mdc ignores SPDLOG_NO_TLS ( #3184 )
...
Co-authored-by: dyf <yufeng.duan@senscape.com.cn >
2024-09-12 22:27:25 +03:00
Massimiliano Riva
d03eb40c17
Added Mapped Diagnostic Context (MDC) support ( #2907 )
...
* Added Mapped Diagnostic Context (MDC) support
* Update include statement
* Optimize string creation
* Fix includes
* Fix padding rules in mdc empty case
* Add comment to describe the use of mdc formatter
2024-03-18 17:41:46 +02:00
gabime
0a53eafe18
update clang format again
2023-09-25 16:40:36 +03:00
gabime
9d52261185
clang format
2023-09-25 16:08:29 +03:00
Vitaly Zaitsev
7f09c88817
Added Catch v3 support ( #2661 )
...
* Added Catch v3 support.
* Removed extra square brackets from some tests.
2023-03-01 13:51:04 +02:00
gabime
8be5b41a2f
revert pr #2656
2023-03-01 01:12:50 +02:00
Vitaly Zaitsev
2a6d3e9f3b
Added Catch v3 support. ( #2656 )
2023-03-01 00:16:39 +02:00
Gabi Melman
dd0d0f68c4
Added compile mscv_sink.h to tests
2022-12-10 00:25:31 +02:00
gabime
070dd181df
clang format
2022-10-31 17:09:45 +02:00
offa
29b24f9e72
Use pragams instead of compile options
2022-09-30 13:20:15 +02:00
Charles Milette
714cf12822
Add fmt_helper.h include to includes.h and os-inl.h
2022-04-22 23:28:28 -04:00
Gabi Melman
752d5685dc
Moved pattern formatter from spdlog/details to spdlog/
2020-03-21 13:33:04 +02:00
gabime
e13e978af4
added loaders tests
2019-12-21 19:25:54 +02:00
gabime
e39959a132
Updated tests to catch v2.8.0
2019-06-04 16:35:34 +03:00
gabime
ce637440bb
wip static-lib
2019-05-13 00:09:00 +03:00
gabime
26a064ed2d
wip static-lib
2019-05-12 23:36:48 +03:00
gabime
17f9cdd401
static lib wip
2019-04-05 23:05:46 +03:00
gabime
0e77c3391b
New compile time API using SPDLOG_ACTIVE_LEVEL
2018-11-11 18:15:24 +02:00
gabime
b368d18b0f
Added default logger API
2018-10-12 03:04:55 +03:00
gabime
36112371c0
Reverted const qualifier to log_msg& args, fixed issue #849 , and added counter tests
2018-10-05 14:23:37 +03:00
gabime
5d7845c138
Added "clone()" support to loggers
2018-08-25 17:55:31 +03:00
gabime
9ad9cfb898
Fixed mpmc_q test for osx in travis
2018-08-17 17:17:16 +03:00
gabime
39c6eb752a
Code formatting
2018-07-07 13:22:43 +03:00
gabime
cd4dcbab36
Renamed simple_file_sink -> basic_file_sink
2018-07-07 12:12:45 +03:00
gabime
3c7103d90d
Format
2018-04-29 01:36:45 +03:00
gabime
780dab6977
Fixed tests
2018-04-29 01:34:36 +03:00
gabime
c962c88342
Fixed linux port of v1.x
2018-04-20 13:20:19 +03:00
gabime
c80cc3306f
Fixed tests
2018-04-20 03:04:53 +03:00
gabime
6f4cd8d397
thread_pool and refactoring async
2018-04-14 03:34:57 +03:00
gabime
a2653d409f
clang-format
2018-03-09 15:26:33 +02:00
gabime
859b7f1d58
fixed test for visual c++
2017-12-01 04:42:23 +02:00
gabime
49989e0678
fixed test for gcc 4.8 (no regex)
2017-12-01 04:35:23 +02:00
gabime
3c4a2bf531
Handle file extensions in rotating and daily loggers
2017-12-01 03:40:49 +02:00
gabime
93be7713e0
astyle
2017-11-06 12:39:04 +02:00
gabime
21ed31844c
fixed bug in SPDLOG_TRACE_IF macro and added some related tests
2017-10-13 02:04:31 +03:00
gabime
0d26359856
astyle
2016-04-20 11:57:49 +03:00
Anton Goryunov
e0f08d6b29
- fixed includes in tests
2016-04-14 23:33:51 +03:00
gabime
495ecaeaee
astyle
2016-04-03 02:14:54 +03:00
gabime
6feaa29c62
tests: added utils.cpp to avoid gcc warnings
2015-12-13 14:36:32 +02:00
gabime
a9fb96e088
1. Fixed file_helper::exists() bug under windows which returned false in some circumstances
...
2. Improved file_helper::exists() performance under linux to use stat sys call
3. Added unit tests
2015-12-12 20:53:00 +02:00
gabime
c701420cf6
fixed tests
2015-05-15 20:54:01 +03:00
gabime
2f81e54568
Added unit tests (catch based)
2015-05-15 20:30:37 +03:00