X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;ds=sidebyside;f=libtest%2Fwait.h;h=391afa4979fe9b897daa35d81ed8478012fff2fc;hb=151262e139e4988712a0670116223fb9ebf3e38f;hp=d72a897bac938efa04af39c9f4ea23ac9be6d910;hpb=8fa241b9251e81929bd07410e9f598c88ee08242;p=m6w6%2Flibmemcached diff --git a/libtest/wait.h b/libtest/wait.h index d72a897b..391afa49 100644 --- a/libtest/wait.h +++ b/libtest/wait.h @@ -38,6 +38,12 @@ public: uint32_t this_wait; uint32_t retry; + if (filename.empty()) + { + _successful= false; + return; + } + for (waited= 0, retry= 1; ; retry++, waited+= this_wait) { if (access(filename.c_str(), R_OK) == 0)