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
3806a9c3
Commit
3806a9c3
authored
Sep 23, 2019
by
gabime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added wchar api tests to windows
parent
4da95066
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
1 deletion
+20
-1
appveyor.yml
appveyor.yml
+1
-1
test_stdout_api.cpp
tests/test_stdout_api.cpp
+19
-0
No files found.
appveyor.yml
View file @
3806a9c3
...
@@ -26,7 +26,7 @@ build_script:
...
@@ -26,7 +26,7 @@ build_script:
set PATH=C:\mingw-w64\i686-5.3.0-posix-dwarf-rt_v4-rev0\mingw32\bin;%PATH%
set PATH=C:\mingw-w64\i686-5.3.0-posix-dwarf-rt_v4-rev0\mingw32\bin;%PATH%
cmake .. -G %GENERATOR% -DCMAKE_BUILD_TYPE=%BUILD_TYPE% -DSPDLOG_BUILD_EXAMPLE=ON -DSPDLOG_BUILD_EXAMPLE_HO=ON -DSPDLOG_BUILD_TESTS=ON -DSPDLOG_BUILD_TESTS_HO=OFF
cmake .. -G %GENERATOR% -DCMAKE_BUILD_TYPE=%BUILD_TYPE% -DSPDLOG_
WCHAR_SUPPORT=ON -DSPDLOG_
BUILD_EXAMPLE=ON -DSPDLOG_BUILD_EXAMPLE_HO=ON -DSPDLOG_BUILD_TESTS=ON -DSPDLOG_BUILD_TESTS_HO=OFF
cmake --build . --config %BUILD_TYPE%
cmake --build . --config %BUILD_TYPE%
...
...
tests/test_stdout_api.cpp
View file @
3806a9c3
...
@@ -78,3 +78,21 @@ TEST_CASE("stderr_color_mt", "[stderr]")
...
@@ -78,3 +78,21 @@ TEST_CASE("stderr_color_mt", "[stderr]")
l
->
critical
(
"Test stderr_color_mt"
);
l
->
critical
(
"Test stderr_color_mt"
);
spdlog
::
drop_all
();
spdlog
::
drop_all
();
}
}
#ifdef SPDLOG_WCHAR_TO_UTF8_SUPPORT
TEST_CASE
(
"wchar_api"
,
"[stdout]"
)
{
auto
l
=
spdlog
::
stdout_logger_st
(
"wchar_logger"
);
l
->
set_pattern
(
"%+"
);
l
->
set_level
(
spdlog
::
level
::
trace
);
l
->
trace
(
L"Test wchar_api"
);
l
->
trace
(
L"Test wchar_api {}"
,
L"param"
);
l
->
trace
(
L"Test wchar_api {}"
,
1
);
l
->
trace
(
L"Test wchar_api {}"
,
std
::
wstring
{
L"wstring param"
});
l
->
trace
(
std
::
wstring
{
L"Test wchar_api wstring"
});
spdlog
::
drop_all
();
}
#endif
\ No newline at end of file
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