This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

uv: upgrade to d41cc9118d

  • Loading branch information...
piscisaureus committed Apr 27, 2012
1 parent e221cd4 commit 0b75eee364230a6e08f4e7ada0735af1d1a25bc4
Showing with 3 additions and 1 deletion.
  1. +1 −1 deps/uv/src/win/process.c
  2. +2 −0 deps/uv/test/test-spawn.c
@@ -873,7 +873,7 @@ int uv_spawn2(uv_loop_t* loop, uv_process_t* process,
PROCESS_INFORMATION info;
if (options.flags & (UV_PROCESS_SETGID | UV_PROCESS_SETUID)) {
- uv__set_sys_error(loop, UV_ENOTSUP);
+ uv__set_artificial_error(loop, UV_ENOTSUP);
return -1;
}
@@ -610,6 +610,7 @@ TEST_IMPL(spawn_setuid_fails) {
r = uv_spawn2(uv_default_loop(), &process, options2);
ASSERT(r == -1);
+ ASSERT(uv_last_error(uv_default_loop()).code == UV_ENOTSUP);
r = uv_run(uv_default_loop());
ASSERT(r == 0);
@@ -630,6 +631,7 @@ TEST_IMPL(spawn_setgid_fails) {
r = uv_spawn2(uv_default_loop(), &process, options2);
ASSERT(r == -1);
+ ASSERT(uv_last_error(uv_default_loop()).code == UV_ENOTSUP);
r = uv_run(uv_default_loop());
ASSERT(r == 0);

0 comments on commit 0b75eee

Please sign in to comment.