You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by yl...@apache.org on 2022/06/23 00:12:43 UTC
svn commit: r1902180 - /apr/apr/trunk/test/testfile.c
Author: ylavic
Date: Thu Jun 23 00:12:43 2022
New Revision: 1902180
URL: http://svn.apache.org/viewvc?rev=1902180&view=rev
Log:
test/testfile.c: apr_file_datasync() fails with ENOTSUP for streams on macos.
* test/testfile.c(test_datasync_on_stream):
Handle ENOTSUP on macos.
Modified:
apr/apr/trunk/test/testfile.c
Modified: apr/apr/trunk/test/testfile.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/test/testfile.c?rev=1902180&r1=1902179&r2=1902180&view=diff
==============================================================================
--- apr/apr/trunk/test/testfile.c (original)
+++ apr/apr/trunk/test/testfile.c Thu Jun 23 00:12:43 2022
@@ -2240,7 +2240,11 @@ static void test_datasync_on_stream(abts
APR_ASSERT_SUCCESS(tc, "write to stdout", rv);
rv = apr_file_datasync(f);
if (rv != APR_SUCCESS) {
+#if defined(__APPLE__)
+ ABTS_INT_EQUAL(tc, ENOTSUP, rv);
+#else
ABTS_INT_EQUAL(tc, APR_EINVAL, rv);
+#endif
}
}