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
6feaa29c
Commit
6feaa29c
authored
Dec 13, 2015
by
gabime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests: added utils.cpp to avoid gcc warnings
parent
9551c817
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
11 deletions
+18
-11
bench/Makefile
bench/Makefile
+1
-1
tests/includes.h
tests/includes.h
+2
-10
tests/utils.cpp
tests/utils.cpp
+11
-0
tests/utils.h
tests/utils.h
+4
-0
No files found.
bench/Makefile
View file @
6feaa29c
...
...
@@ -17,7 +17,7 @@ spdlog-async: spdlog-async.cpp
$(CXX)
spdlog-async.cpp
-o
spdlog-async
$(CXXFLAGS)
$(CXX_RELEASE_FLAGS)
BOOST_FLAGS
=
-DBOOST_LOG_DYN_LINK
-I
/
home/gabi/devel/boost_1_56_0/
-L
/home/gabi/devel/boost_1_56_0/stage/lib
-lboost_log
-lboost_log_setup
-lboost_filesystem
-lboost_system
-lboost_thread
-lboost_regex
-lboost_date_time
-lboost_chrono
BOOST_FLAGS
=
-DBOOST_LOG_DYN_LINK
-I
/
usr/include
-lboost_log
-lboost_log_setup
-lboost_filesystem
-lboost_system
-lboost_thread
-lboost_regex
-lboost_date_time
-lboost_chrono
boost-bench
:
boost-bench.cpp
$(CXX)
boost-bench.cpp
-o
boost-bench
$(CXXFLAGS)
$(BOOST_FLAGS)
$(CXX_RELEASE_FLAGS)
...
...
tests/includes.h
View file @
6feaa29c
...
...
@@ -8,16 +8,8 @@
#include <exception>
#include "catch.hpp"
#include "utils.h"
#include "../include/spdlog/spdlog.h"
#include "../include/spdlog/sinks/null_sink.h"
static
void
prepare_logdir
()
{
spdlog
::
drop_all
();
#ifdef _WIN32
auto
rv
=
system
(
"del /F /Q logs
\\
*"
);
#else
auto
rv
=
system
(
"rm -f logs/*"
);
#endif
}
\ No newline at end of file
tests/utils.cpp
0 → 100644
View file @
6feaa29c
#include "includes.h"
void
prepare_logdir
()
{
spdlog
::
drop_all
();
#ifdef _WIN32
auto
rv
=
system
(
"del /F /Q logs
\\
*"
);
#else
auto
rv
=
system
(
"rm -f logs/*"
);
#endif
}
tests/utils.h
0 → 100644
View file @
6feaa29c
#pragma once
void
prepare_logdir
();
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