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){
notify.resize(100lu); //Useless resize for coverage
std::cout << "testPNotify : nbMaxEvent = " << notify.getMaxEvent() << std::endl;
size_t nbCheck(10lu);
size_t nbCheck(15lu);
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";
......
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