[wget-notify] [bug #22789] Unit test code has declaration after
statement (invalid C90 code)
Micah Cowan
INVALID.NOREPLY at gnu.org
Mon Mar 31 11:26:52 PDT 2008
URL:
<http://savannah.gnu.org/bugs/?22789>
Summary: Unit test code has declaration after statement
(invalid C90 code)
Project: GNU Wget
Submitted by: micahcowan
Submitted on: Monday 03/31/2008 at 11:26
Category: Code Architecture
Severity: 2 - Minor
Priority: 5 - Normal
Status: Confirmed
Privacy: Public
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: None
Operating System: None
Reproducibility: None
Fixed Release: None
Planned Release: 1.12
Regression: None
Work Required: None
Patch Included: None
_______________________________________________________
Details:
http://article.gmane.org/gmane.comp.web.wget.general/7820
diff -prud wget-1.11.1.orig/src/test.h wget-1.11.1/src/test.h
--- wget-1.11.1.orig/src/test.h Mon Mar 24 22:53:58 2008
+++ wget-1.11.1/src/test.h Mon Mar 31 15:19:31 2008
@@ -34,8 +34,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"); \
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?22789>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
More information about the wget-notify
mailing list