X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=src%2Ftest.h;h=f9a3f2cbb66d2b235e96e01246f7c5b5fdadb205;hp=bba790aaabcf46d24b0ac0b475fe74d151a87831;hb=2f6aa1d7417df1dfc58597777686fbd77179b9fd;hpb=462e643a7e31676eceda23e634241f7b4d2cd7bb diff --git a/src/test.h b/src/test.h index bba790aa..f9a3f2cb 100644 --- a/src/test.h +++ b/src/test.h @@ -1,5 +1,6 @@ /* Unit testing declarations. - Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc. + Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software + Foundation, Inc. This file is part of GNU Wget. @@ -34,8 +35,9 @@ as that of the covered work. */ #define mu_assert(message, test) do { if (!(test)) return message; } while (0) #define mu_run_test(test) \ do { \ + const char *message; \ puts("RUNNING TEST " #test "..."); \ - const char *message = test(); \ + message = test(); \ tests_run++; \ if (message) return message; \ puts("PASSED\n"); \