Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
spdlog
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
spdlog
Commits
52d1c088
Commit
52d1c088
authored
Jun 01, 2018
by
gabime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleaned tests
parent
7815d398
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
tests/errors.cpp
tests/errors.cpp
+2
-5
No files found.
tests/errors.cpp
View file @
52d1c088
...
...
@@ -20,11 +20,11 @@ class failing_sink : public spdlog::sinks::sink
TEST_CASE
(
"default_error_handler"
,
"[errors]]"
)
{
spdlog
::
drop_all
();
prepare_logdir
();
std
::
string
filename
=
"logs/simple_log.txt"
;
auto
logger
=
spdlog
::
create
<
spdlog
::
sinks
::
simple_file_sink_mt
>
(
"
logge
r"
,
filename
,
true
);
auto
logger
=
spdlog
::
create
<
spdlog
::
sinks
::
simple_file_sink_mt
>
(
"
test-erro
r"
,
filename
,
true
);
logger
->
set_pattern
(
"%v"
);
#if !defined(SPDLOG_FMT_PRINTF)
logger
->
info
(
"Test message {} {}"
,
1
);
...
...
@@ -44,7 +44,6 @@ struct custom_ex
};
TEST_CASE
(
"custom_error_handler"
,
"[errors]]"
)
{
spdlog
::
drop_all
();
prepare_logdir
();
std
::
string
filename
=
"logs/simple_log.txt"
;
auto
logger
=
spdlog
::
create
<
spdlog
::
sinks
::
simple_file_sink_mt
>
(
"logger"
,
filename
,
true
);
...
...
@@ -78,7 +77,6 @@ TEST_CASE("flush_error_handler", "[errors]]")
TEST_CASE
(
"async_error_handler"
,
"[errors]]"
)
{
spdlog
::
drop_all
();
prepare_logdir
();
std
::
string
err_msg
(
"log failed with some msg"
);
...
...
@@ -109,7 +107,6 @@ TEST_CASE("async_error_handler", "[errors]]")
// Make sure async error handler is executed
TEST_CASE
(
"async_error_handler2"
,
"[errors]]"
)
{
spdlog
::
drop_all
();
prepare_logdir
();
std
::
string
err_msg
(
"This is async handler error message"
);
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment