You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by rb...@apache.org on 2002/11/23 23:06:15 UTC
cvs commit: apr/test testall.c testoc.c
rbb 2002/11/23 14:06:15
Modified: test testall.c testoc.c
Log:
Quiet an annoying warning.
Revision Changes Path
1.21 +1 -1 apr/test/testall.c
Index: testall.c
===================================================================
RCS file: /home/cvs/apr/test/testall.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- testall.c 23 Nov 2002 21:53:00 -0000 1.20
+++ testall.c 23 Nov 2002 22:06:15 -0000 1.21
@@ -84,7 +84,7 @@
int main(int argc, char *argv[])
{
- CuSuiteList *alltests;
+ CuSuiteList *alltests = NULL;
CuString *output = CuStringNew();
int i;
int partial = 0;
1.25 +22 -6 apr/test/testoc.c
Index: testoc.c
===================================================================
RCS file: /home/cvs/apr/test/testoc.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -r1.24 -r1.25
--- testoc.c 5 Jul 2002 00:11:10 -0000 1.24
+++ testoc.c 23 Nov 2002 22:06:15 -0000 1.25
@@ -52,17 +52,12 @@
* <http://www.apache.org/>.
*/
+#include "apr_test.h"
#include "apr_thread_proc.h"
#include "apr_errno.h"
#include "apr_general.h"
#include "apr_lib.h"
#include "apr_strings.h"
-#include <errno.h>
-#include <stdio.h>
-#include <stdlib.h>
-#if APR_HAVE_UNISTD_H
-#include <unistd.h>
-#endif
#if APR_HAS_OTHER_CHILD
static void ocmaint(int reason, void *data, int status)
@@ -165,4 +160,25 @@
return 0;
}
+
+#if !APR_HAS_OTHER_CHILD
+static void oc_not_impl(CuTest *tc)
+{
+ CuNotImpl(tc, "Other child logic not implemented on this platform");
+}
+#endif
+
+CuSuite *testoc(void)
+{
+ CuSuite *suite = CuSuiteNew("Test Time");
+
+#if APR_HAS_OTHER_CHILD
+ SUITE_ADD_TEST(suite, oc_not_impl);
+#else
+
+ SUITE_ADD_TEST(suite, test_strftimeoffset);
+
+#endif
+ return suite;
+}