X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=src%2Ftest.c;h=e7ce54cf74340dd3384a5844435476e69b4b0862;hp=377afe231dbc4ba558881ba971ada0c759341ad2;hb=2f6aa1d7417df1dfc58597777686fbd77179b9fd;hpb=75c4606003ccd041fe2adf919cc1f1a4fde6d39f diff --git a/src/test.c b/src/test.c index 377afe23..e7ce54cf 100644 --- a/src/test.c +++ b/src/test.c @@ -1,5 +1,6 @@ /* Unit testing. - Copyright (C) 2005, 2006, 2007, 2008 Free Software Foundation, Inc. + Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software + Foundation, Inc. This file is part of GNU Wget. @@ -59,32 +60,32 @@ all_tests() mu_run_test (test_append_uri_pathel); mu_run_test (test_are_urls_equal); mu_run_test (test_is_robots_txt_url); - + return NULL; } char *program_name; /* Needed by lib/error.c. */ int -main (int argc, char *argv[]) +main (int argc, char *argv[]) { const char *result; program_name = argv[0]; result = all_tests(); - - if (result != NULL) + + if (result != NULL) { puts (result); } - else + else { printf ("ALL TESTS PASSED\n"); } - + printf ("Tests run: %d\n", tests_run); - + return result != 0; }