[wget-notify] [bug #20430] Tests need to be a bit more verbose.

Micah Cowan INVALID.NOREPLY at gnu.org
Fri Jul 13 13:09:12 PDT 2007


Follow-up Comment #2, bug #20430 (project wget):

Actually, I'd prefer that the solution be rolled into the definition of
mu_run_test, if possible. That is, you could have it do exactly as your patch
does, but instead of writing

   printf ("RUNNING TEST text_prase_content_disposition...n");
   mu_run_test (test_parse_content_disposition);
   printf ("PASSEDnn");
 
   printf ("RUNNING TEST test_subdir_p...n");
   mu_run_test (test_subdir_p);
   printf ("PASSEDnn");
 
   ...

You could just have mu_run_test do the work for you (untested):

#define mu_run_test(test) 
    do {
        const char *message;
        puts ("RUNNING TEST " #test "...");
        message = test();
        tests_run++;
        if (message) return message;
        else puts ("PASSEDn");
    } while (0)

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?20430>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/



More information about the wget-notify mailing list