Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
S
spdlog
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
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
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
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