test-spawn failed to build on linux
- added missing header file - converted c++ style comment to c style comment
This commit is contained in:
parent
fac3b68fff
commit
623441685d
@ -25,6 +25,11 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
#ifndef _WIN32
|
||||||
|
#include <unistd.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
static int close_cb_called;
|
static int close_cb_called;
|
||||||
static int exit_cb_called;
|
static int exit_cb_called;
|
||||||
static uv_process_t process;
|
static uv_process_t process;
|
||||||
@ -548,7 +553,7 @@ TEST_IMPL(spawn_setuid_setgid) {
|
|||||||
|
|
||||||
init_process_options("spawn_helper1", exit_cb);
|
init_process_options("spawn_helper1", exit_cb);
|
||||||
|
|
||||||
// become the "nobody" user.
|
/* become the "nobody" user. */
|
||||||
struct passwd* pw;
|
struct passwd* pw;
|
||||||
pw = getpwnam("nobody");
|
pw = getpwnam("nobody");
|
||||||
ASSERT(pw != NULL);
|
ASSERT(pw != NULL);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user