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/12/12 05:02:10 UTC
cvs commit: apr/test testpipe.c
rbb 2002/12/11 20:02:10
Modified: test testpipe.c
Log:
Force the timeout_read of pipes to fail on Windows. This allows the test
suite to run all tests, and this test fails as it stands now.
Revision Changes Path
1.21 +10 -0 apr/test/testpipe.c
Index: testpipe.c
===================================================================
RCS file: /home/cvs/apr/test/testpipe.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- testpipe.c 3 Dec 2002 22:01:00 -0000 1.20
+++ testpipe.c 12 Dec 2002 04:02:10 -0000 1.21
@@ -115,6 +115,16 @@
char *buf;
apr_size_t nbytes;
+#ifdef WIN32
+ /* XXX: THIS IS A HACK
+ * This test currently fails on Windows, because it never returns from the file_read
+ * call. Because this stops the test suite from working, I am just making this fail
+ * automatically on Windows without running the test. When Windows gets this feature,
+ * this hack should be removed.
+ */
+ CuFail(tc, "Timeouts don't work on pipes on Windows");
+#endif
+
nbytes = strlen("this is a test");
buf = (char *)apr_palloc(p, nbytes + 1);