Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
iMSTK
iMSTK
Commits
905d9384
Commit
905d9384
authored
Aug 02, 2021
by
Harald Scheirich
Browse files
BUG: Incorrect logic with regards to directory creation
parent
4f24afe0
Pipeline
#240460
passed with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Source/Testing/imstkTestingMain.cpp
View file @
905d9384
...
...
@@ -28,23 +28,24 @@
int
main
(
int
argc
,
char
**
argv
)
{
bool
removeLog
=
fals
e
;
bool
removeLog
=
tru
e
;
for
(
int
i
=
0
;
i
<
argc
;
++
i
)
{
if
(
std
::
string
(
argv
[
i
])
==
"--imstk_keep_log"
)
{
removeLog
=
tru
e
;
removeLog
=
fals
e
;
}
}
if
(
removeLog
)
{
vtksys
::
SystemTools
::
RemoveADirectory
(
"testlog"
);
vtksys
::
SystemTools
::
MakeDirectory
(
"testlog"
);
vtksys
::
SystemTools
::
RemoveADirectory
(
"log"
);
}
vtksys
::
SystemTools
::
MakeDirectory
(
"log"
);
auto
&
logger
=
imstk
::
Logger
::
getInstance
();
logger
.
addFileSink
(
"test"
,
"
test
log"
);
logger
.
addFileSink
(
"test"
,
"log"
);
::
testing
::
InitGoogleTest
(
&
argc
,
argv
);
return
RUN_ALL_TESTS
();
...
...
Write
Preview
Supports
Markdown
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