Commit a6efb0f6 authored by Pierre Aubert's avatar Pierre Aubert
Browse files

Need more test

parent f923e648
Pipeline #98197 passed with stages
in 1 minute and 57 seconds
......@@ -21,16 +21,19 @@
*/
void testPNotify(bool & b, const std::string & inputDir){
b = true;
PNotify nodify;
PNotify notify;
nodify.setFlags(IN_NONBLOCK);
nodify.resize(100lu); //Let's have 100 files in buffer
nodify.addWatch(inputDir, IN_CLOSE_WRITE);
notify.setFlags(IN_NONBLOCK);
notify.resize(100lu); //Let's have 100 files in buffer
notify.addWatch(inputDir, IN_CLOSE_WRITE);
notify.resize(100lu); //Useless resize for coverage
std::cout << "testPNotify : nbMaxEvent = " << notify.getMaxEvent() << std::endl;
size_t nbCheck(5lu);
for(size_t i(0lu); i < nbCheck; ++i){
std::vector<std::string> vecNewFile(nodify.scanFileName());
std::vector<std::string> vecNewFile(notify.scanFileName());
std::cout << "testPNotify check "<<i<<" : find " << vecNewFile.size() << " new files" << std::endl;
if(vecNewFile.size() != 0lu){
for(std::vector<std::string>::iterator it(vecNewFile.begin()); it != vecNewFile.end(); ++it){
......
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