src/lib/unittests.c
void _nok(const char *file, int l, const char *op, int value, const char *label)
{
   nb++;
   if (value) {
      err++;
      Pmsg4(-1, "ERR %.80s %s:%i on !%s\n", label, file, l, op);
   } else {
      Pmsg1(-1, "OK  %.80s\n", label);
   }
}
/*
 * Test success if value is zero.
 */
Test success if value is zero.
Test success if value is zero .
void _nok(const char *file, int l, const char *op, int value, const char *label)
{
   nb++;
   if (value) {
      err++;
      Pmsg4(-1, "ERR %.80s %s:%i on !%s\n", label, file, l, op);
   } else {
      Pmsg1(-1, "OK  %.80s\n", label);
   }
}
void _nok ( const char * file , int l , const char * op , int value , const char * label ) { nb ++ ; if ( value ) { err ++ ; Pmsg4 ( -1 , " \n " , label , file , l , op ) ; } else { Pmsg1 ( -1 , " \n " , label ) ; } }
Test success if value is zero.
Test success if value is zero .