[Expat-checkins] expat/tests chardata.c, 1.4, 1.5 runtests.c, 1.51, 1.52

Greg Stein gstein at users.sourceforge.net
Thu Oct 9 17:32:30 EDT 2003


Update of /cvsroot/expat/expat/tests
In directory sc8-pr-cvs1:/tmp/cvs-serv27461/tests

Modified Files:
	chardata.c runtests.c 
Log Message:
Put in a little protection against the developer not having the check
package available.

sfbug #664541.

* configure.in: look for check.h. This will set up a HAVE_CHECK_H define.

* tests/chardata.c, tests/runtests.c: update banner. add test for
    HAVE_CHECK_H and bail if not present.


Index: chardata.c
===================================================================
RCS file: /cvsroot/expat/expat/tests/chardata.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- chardata.c	21 May 2002 21:39:18 -0000	1.4
+++ chardata.c	9 Oct 2003 21:32:28 -0000	1.5
@@ -1,7 +1,15 @@
-/*  chardata.c
- *
- *
- */
+/* Copyright (c) 1998-2003 Thai Open Source Software Center Ltd
+   See the file COPYING for copying permission.
+
+   chardata.c
+*/
+
+#include <expat_config.h>
+#ifdef HAVE_CHECK_H
+#include <check.h>
+#else
+#error This test suite requires the 'check' unit test framework (http://check.sf.net/)
+#endif
 
 #include <assert.h>
 #include <check.h>

Index: runtests.c
===================================================================
RCS file: /cvsroot/expat/expat/tests/runtests.c,v
retrieving revision 1.51
retrieving revision 1.52
diff -u -d -r1.51 -r1.52
--- runtests.c	27 Aug 2003 12:34:23 -0000	1.51
+++ runtests.c	9 Oct 2003 21:32:28 -0000	1.52
@@ -1,5 +1,17 @@
-#include <assert.h>
+/* Copyright (c) 1998, 1999, 2000 Thai Open Source Software Center Ltd
+   See the file COPYING for copying permission.
+
+   runtest.c : run the Expat test suite
+*/
+
+#include <expat_config.h>
+#ifdef HAVE_CHECK_H
 #include <check.h>
+#else
+#error This test suite requires the 'check' unit test framework (http://check.sf.net/)
+#endif
+
+#include <assert.h>
 #include <stdlib.h>
 #include <stdio.h>
 #include <string.h>





More information about the Expat-checkins mailing list