Commit 0894b471 authored by Pierre Aubert's avatar Pierre Aubert
Browse files

Add print test

parent 7f258799
Pipeline #101113 passed with stages
in 7 minutes and 53 seconds
...@@ -30,7 +30,7 @@ void testPNotify(bool & b, const std::string & inputDir){ ...@@ -30,7 +30,7 @@ void testPNotify(bool & b, const std::string & inputDir){
notify.resize(100lu); //Useless resize for coverage notify.resize(100lu); //Useless resize for coverage
std::cout << "testPNotify : nbMaxEvent = " << notify.getMaxEvent() << std::endl; std::cout << "testPNotify : nbMaxEvent = " << notify.getMaxEvent() << std::endl;
size_t nbCheck(10lu); size_t nbCheck(15lu);
for(size_t i(0lu); i < nbCheck; ++i){ for(size_t i(0lu); i < nbCheck; ++i){
PVecPtrNotifyEvent vecEvent(notify.scanEvent()); PVecPtrNotifyEvent vecEvent(notify.scanEvent());
...@@ -48,7 +48,7 @@ void testPNotify(bool & b, const std::string & inputDir){ ...@@ -48,7 +48,7 @@ void testPNotify(bool & b, const std::string & inputDir){
/** @param inputDir : create files in the given directory /** @param inputDir : create files in the given directory
*/ */
void testCreateFile(const std::string & inputDir){ void testCreateFile(const std::string & inputDir){
std::cerr << "testCreateFile : create file :" << std::endl;
size_t nbFile(10lu); size_t nbFile(10lu);
for(size_t i(0lu); i < nbFile; ++i){ for(size_t i(0lu); i < nbFile; ++i){
...@@ -63,8 +63,8 @@ void testCreateFile(const std::string & inputDir){ ...@@ -63,8 +63,8 @@ void testCreateFile(const std::string & inputDir){
usleep(250000); usleep(250000);
} }
//Let's rewrite //Let's rewrite
std::cerr << "testCreateFile : rewrite file :" << std::endl;
for(size_t i(0lu); i < nbFile; ++i){ for(size_t i(0lu); i < nbFile; ++i){
std::stringstream fileName; std::stringstream fileName;
...@@ -78,6 +78,7 @@ void testCreateFile(const std::string & inputDir){ ...@@ -78,6 +78,7 @@ void testCreateFile(const std::string & inputDir){
usleep(250000); usleep(250000);
} }
//Let's read //Let's read
std::cerr << "testCreateFile : read file :" << std::endl;
for(size_t i(0lu); i < nbFile; ++i){ for(size_t i(0lu); i < nbFile; ++i){
std::stringstream fileName; std::stringstream fileName;
fileName << inputDir << "/file_" << i << ".txt"; fileName << inputDir << "/file_" << i << ".txt";
...@@ -92,6 +93,7 @@ void testCreateFile(const std::string & inputDir){ ...@@ -92,6 +93,7 @@ void testCreateFile(const std::string & inputDir){
usleep(250000); usleep(250000);
} }
//Let's remove //Let's remove
std::cerr << "testCreateFile : remove file :" << std::endl;
for(size_t i(0lu); i < nbFile; ++i){ for(size_t i(0lu); i < nbFile; ++i){
std::stringstream fileName; std::stringstream fileName;
fileName << inputDir << "/file_" << i << ".txt"; fileName << inputDir << "/file_" << i << ".txt";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment