From 5e2fbe59940902c8a89366cb46a087f506200543 Mon Sep 17 00:00:00 2001 From: John Barboza Date: Wed, 2 Aug 2017 22:27:54 -0400 Subject: [PATCH] test,zos: skip chown root test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit z/OS allows non root users to chown a file to root via the CHOWN.UNRESTRICTED profile. So avoid that test on z/OS. PR-URL: https://github.com/libuv/libuv/pull/1454 Reviewed-By: Colin Ihrig Reviewed-By: Saúl Ibarra Corretgé --- test/test-fs.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/test-fs.c b/test/test-fs.c index 404d0426..cf05a6c6 100644 --- a/test/test-fs.c +++ b/test/test-fs.c @@ -1492,12 +1492,14 @@ TEST_IMPL(fs_chown) { uv_run(loop, UV_RUN_DEFAULT); ASSERT(chown_cb_count == 1); +#ifndef __MVS__ /* chown to root (fail) */ chown_cb_count = 0; r = uv_fs_chown(loop, &req, "test_file", 0, 0, chown_root_cb); ASSERT(r == 0); uv_run(loop, UV_RUN_DEFAULT); ASSERT(chown_cb_count == 1); +#endif /* async fchown */ r = uv_fs_fchown(loop, &req, file, -1, -1, fchown_cb);