test,zos: skip chown root test
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 <cjihrig@gmail.com Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com> Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
This commit is contained in:
parent
4646428def
commit
5e2fbe5994
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user