]> pd.if.org Git - pdclib.old/blobdiff - internals/_PDCLIB_test.h
Porting current working set from CVS.
[pdclib.old] / internals / _PDCLIB_test.h
index 66ffb069257b39d7475700b14b9149d5afd5ac89..90c47bdc2e3f52449f21384c94f5134c1fa198dd 100644 (file)
@@ -1,25 +1,26 @@
-/* $Id$ */
-
-/* Release $Name$ */
-
-/* PDCLib testing suite <_PDCLIB_test.h>
-
-   This file is part of the Public Domain C Library (PDCLib).
-   Permission is granted to use, modify, and / or redistribute at will.
-*/
-
-/* -------------------------------------------------------------------------- */
-/* Helper macros for test drivers                                             */
-/* -------------------------------------------------------------------------- */
-
-#include <stdio.h>
-
-char const abcde[] = "abcde";
-char const abcdx[] = "abcdx";
-
-int NO_TESTDRIVER = 0;
-
-#define BEGIN_TESTS   unsigned int rc = 0
-#define TESTCASE( x ) if ( x ) {} \
-                      else { rc += 1; printf( "Testcase failed: " __FILE__ ", line %d - " #x "\n", __LINE__ ); }
-#define TEST_RESULTS  rc
+/* $Id$ */\r
+\r
+/* Release $Name$ */\r
+\r
+/* PDCLib testing suite <_PDCLIB_test.h>\r
+\r
+   This file is part of the Public Domain C Library (PDCLib).\r
+   Permission is granted to use, modify, and / or redistribute at will.\r
+*/\r
+\r
+/* -------------------------------------------------------------------------- */\r
+/* Helper macros for test drivers                                             */\r
+/* -------------------------------------------------------------------------- */\r
+\r
+#include <stdio.h>\r
+\r
+char const abcde[] = "abcde";\r
+char const abcdx[] = "abcdx";\r
+\r
+int NO_TESTDRIVER = 0;\r
+\r
+//#define BEGIN_TESTS   unsigned int rc = 0\r
+static unsigned int rc = 0;\r
+#define TESTCASE( x ) if ( x ) {} \\r
+                      else { rc += 1; printf( "Testcase failed: " __FILE__ ", line %d - " #x "\n", __LINE__ ); }\r
+#define TEST_RESULTS  rc\r