diff options
author | Yann Ylavic <ylavic@apache.org> | 2022-06-23 00:12:43 +0000 |
---|---|---|
committer | Yann Ylavic <ylavic@apache.org> | 2022-06-23 00:12:43 +0000 |
commit | 5f8340323426db5de7e33d1d703892d6970be9ec (patch) | |
tree | 9d2d4fd7501a408c738fe81f5be3615264cfc29a | |
parent | 17d0e7db3955e14c92c88d34a726b82a2217805a (diff) | |
download | apr-5f8340323426db5de7e33d1d703892d6970be9ec.tar.gz |
test/testfile.c: apr_file_datasync() fails with ENOTSUP for streams on macos.
* test/testfile.c(test_datasync_on_stream):
Handle ENOTSUP on macos.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1902180 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | test/testfile.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/testfile.c b/test/testfile.c index f48e38857..591f7acb5 100644 --- a/test/testfile.c +++ b/test/testfile.c @@ -2240,7 +2240,11 @@ static void test_datasync_on_stream(abts_case *tc, void *data) 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 } } |