[Libct] [PATCH 5/7] VZ containers: add FS root to vz_create_exec test
Alexander Burluka
aburluka at parallels.com
Wed Nov 12 04:40:26 PST 2014
---
test/vz_create_exec.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/test/vz_create_exec.c b/test/vz_create_exec.c
index 0f98b0d..6401aa7 100644
--- a/test/vz_create_exec.c
+++ b/test/vz_create_exec.c
@@ -2,9 +2,11 @@
#include <stdlib.h>
#include <libct.h>
#include <unistd.h>
+#include <sched.h>
#include "test.h"
+#define FS_ROOT "/"
int main(int argc, char *argv[])
{
libct_session_t s;
@@ -16,6 +18,7 @@ int main(int argc, char *argv[])
s = libct_session_open_local();
ct = libct_container_create(s, "1337");
p = libct_process_desc_create(s);
+ libct_fs_set_root(ct, FS_ROOT);
if (libct_container_spawn_execvfds(ct, p, "/bin/ls", ls_a, fds) <= 0)
goto err;
--
1.7.1
More information about the Libct
mailing list