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
adc4398c
Commit
adc4398c
authored
Sep 15, 2019
by
gabime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed widows tests
parent
c53d26cf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
test_daily_logger.cpp
tests/test_daily_logger.cpp
+0
-1
utils.cpp
tests/utils.cpp
+3
-2
No files found.
tests/test_daily_logger.cpp
View file @
adc4398c
...
...
@@ -135,7 +135,6 @@ static void test_rotate(int days_to_run, uint16_t max_days, uint16_t expected_n_
TEST_CASE
(
"daily_logger rotate"
,
"[daily_file_sink]"
)
{
int
days_to_run
=
1
;
test_rotate
(
days_to_run
,
0
,
1
);
test_rotate
(
days_to_run
,
1
,
1
);
...
...
tests/utils.cpp
View file @
adc4398c
...
...
@@ -80,12 +80,13 @@ std::size_t count_files(const std::string &folder)
HANDLE
hFind
=
INVALID_HANDLE_VALUE
;
// Start iterating over the files in the path directory.
hFind
=
::
FindFirstFileA
(
folder
.
c_str
(),
&
ffd
);
hFind
=
::
FindFirstFileA
(
(
folder
+
"
\\
*.*"
)
.
c_str
(),
&
ffd
);
if
(
hFind
!=
INVALID_HANDLE_VALUE
)
{
do
// Managed to locate and create an handle to that folder.
{
counter
++
;
if
(
ffd
.
cFileName
[
0
]
!=
'.'
)
counter
++
;
}
while
(
::
FindNextFile
(
hFind
,
&
ffd
)
==
TRUE
);
::
FindClose
(
hFind
);
}
...
...
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