Re: Make check fails

From: Guido Serassio <guido.serassio@dont-contact.us>
Date: Sun, 23 Apr 2006 17:53:36 +0200

Hi Robert,

At 13.55 23/04/2006, Guido Serassio wrote:

>Still fails, in a different way:
>

With this patch it works:

Index: src/tests/testHeader_HttpHeader.cc
===================================================================
RCS file: /squid/squid3/src/tests/testHeader_HttpHeader.cc,v
retrieving revision 1.1
diff -u -p -r1.1 testHeader_HttpHeader.cc
--- src/tests/testHeader_HttpHeader.cc 22 Apr 2006 13:18:37 -0000 1.1
+++ src/tests/testHeader_HttpHeader.cc 23 Apr 2006 15:51:37 -0000
@@ -1,4 +1,17 @@
  /* This test tests that the header below can be processed on its own with
   * no other #includes. Dont add any!
   */
+#include "config.h"
+
+#if PURIFY
+#define assert(EX) ((void)0)
+#elif defined(NODEBUG)
+#define assert(EX) ((void)0)
+#elif STDC_HEADERS
+#define assert(EX) ((EX)?((void)0):xassert( # EX , __FILE__, __LINE__))
+#else
+#define assert(EX) ((EX)?((void)0):xassert("EX", __FILE__, __LINE__))
+#endif
+extern void xassert(const char *, const char *, int);
+
  #include "HttpHeader.h"
Index: src/tests/testHeader_HttpHeaderRange.cc
===================================================================
RCS file: /squid/squid3/src/tests/testHeader_HttpHeaderRange.cc,v
retrieving revision 1.1
diff -u -p -r1.1 testHeader_HttpHeaderRange.cc
--- src/tests/testHeader_HttpHeaderRange.cc 22 Apr 2006 13:18:37
-0000 1.1
+++ src/tests/testHeader_HttpHeaderRange.cc 23 Apr 2006 15:51:37 -0000
@@ -1,4 +1,17 @@
  /* This test tests that the header below can be processed on its own with
   * no other #includes. Dont add any!
   */
+#include "config.h"
+
+#if PURIFY
+#define assert(EX) ((void)0)
+#elif defined(NODEBUG)
+#define assert(EX) ((void)0)
+#elif STDC_HEADERS
+#define assert(EX) ((EX)?((void)0):xassert( # EX , __FILE__, __LINE__))
+#else
+#define assert(EX) ((EX)?((void)0):xassert("EX", __FILE__, __LINE__))
+#endif
+extern void xassert(const char *, const char *, int);
+
  #include "HttpHeaderRange.h"

Regards

Guido

-
========================================================
Guido Serassio
Acme Consulting S.r.l. - Microsoft Certified Partner
Via Lucia Savarino, 1 10098 - Rivoli (TO) - ITALY
Tel. : +39.011.9530135 Fax. : +39.011.9781115
Email: guido.serassio@acmeconsulting.it
WWW: http://www.acmeconsulting.it/
Received on Sun Apr 23 2006 - 09:53:45 MDT

This archive was generated by hypermail pre-2.1.9 : Mon May 01 2006 - 12:00:03 MDT