Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
CTA-LAPP
PHOENIX_LIBS
PhoenixNotify
Commits
0894b471
Commit
0894b471
authored
Jan 05, 2021
by
Pierre Aubert
Browse files
Add print test
parent
7f258799
Pipeline
#101113
passed with stages
in 7 minutes and 53 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
TESTS/TEST_PRINT_NOTIFY/main.cpp
TESTS/TEST_PRINT_NOTIFY/main.cpp
+5
-3
No files found.
TESTS/TEST_PRINT_NOTIFY/main.cpp
View file @
0894b471
...
...
@@ -30,7 +30,7 @@ void testPNotify(bool & b, const std::string & inputDir){
notify
.
resize
(
100lu
);
//Useless resize for coverage
std
::
cout
<<
"testPNotify : nbMaxEvent = "
<<
notify
.
getMaxEvent
()
<<
std
::
endl
;
size_t
nbCheck
(
1
0
lu
);
size_t
nbCheck
(
1
5
lu
);
for
(
size_t
i
(
0lu
);
i
<
nbCheck
;
++
i
){
PVecPtrNotifyEvent
vecEvent
(
notify
.
scanEvent
());
...
...
@@ -48,7 +48,7 @@ void testPNotify(bool & b, const std::string & inputDir){
/** @param inputDir : create files in the given directory
*/
void
testCreateFile
(
const
std
::
string
&
inputDir
){
std
::
cerr
<<
"testCreateFile : create file :"
<<
std
::
endl
;
size_t
nbFile
(
10lu
);
for
(
size_t
i
(
0lu
);
i
<
nbFile
;
++
i
){
...
...
@@ -63,8 +63,8 @@ void testCreateFile(const std::string & inputDir){
usleep
(
250000
);
}
//Let's rewrite
std
::
cerr
<<
"testCreateFile : rewrite file :"
<<
std
::
endl
;
for
(
size_t
i
(
0lu
);
i
<
nbFile
;
++
i
){
std
::
stringstream
fileName
;
...
...
@@ -78,6 +78,7 @@ void testCreateFile(const std::string & inputDir){
usleep
(
250000
);
}
//Let's read
std
::
cerr
<<
"testCreateFile : read file :"
<<
std
::
endl
;
for
(
size_t
i
(
0lu
);
i
<
nbFile
;
++
i
){
std
::
stringstream
fileName
;
fileName
<<
inputDir
<<
"/file_"
<<
i
<<
".txt"
;
...
...
@@ -92,6 +93,7 @@ void testCreateFile(const std::string & inputDir){
usleep
(
250000
);
}
//Let's remove
std
::
cerr
<<
"testCreateFile : remove file :"
<<
std
::
endl
;
for
(
size_t
i
(
0lu
);
i
<
nbFile
;
++
i
){
std
::
stringstream
fileName
;
fileName
<<
inputDir
<<
"/file_"
<<
i
<<
".txt"
;
...
...
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