X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=src%2Ftest.h;h=f9a3f2cbb66d2b235e96e01246f7c5b5fdadb205;hp=496954e20697aa2a425014aebc8741b8cc9e933c;hb=b1838bdfd197ec970d834ce5042995df92516841;hpb=caae3b70f46bd519857b595f7f06ea0179551336 diff --git a/src/test.h b/src/test.h index 496954e2..f9a3f2cb 100644 --- a/src/test.h +++ b/src/test.h @@ -1,5 +1,6 @@ /* Unit testing declarations. - 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. @@ -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"); \