diff options
Diffstat (limited to 'recipes-containers/lxc/files/tests-our-init-is-not-busybox.patch')
-rw-r--r-- | recipes-containers/lxc/files/tests-our-init-is-not-busybox.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/recipes-containers/lxc/files/tests-our-init-is-not-busybox.patch b/recipes-containers/lxc/files/tests-our-init-is-not-busybox.patch new file mode 100644 index 00000000..4c9bf652 --- /dev/null +++ b/recipes-containers/lxc/files/tests-our-init-is-not-busybox.patch | |||
@@ -0,0 +1,31 @@ | |||
1 | From b53169dc4c53f9ef64f8cb06dd9af97182577698 Mon Sep 17 00:00:00 2001 | ||
2 | From: Mark Asselstine <mark.asselstine@windriver.com> | ||
3 | Date: Thu, 31 May 2018 15:00:34 -0400 | ||
4 | Subject: [PATCH] tests: our init is not busybox | ||
5 | |||
6 | Since we are using 'bash' as the init (see our updates to the busybox | ||
7 | template) we can't compare '/sbin/init' and 'busybox'. Actually we are | ||
8 | really only interested in the fact 'cmp' is being run and not the | ||
9 | result, so simplify by comparing '/sbin/init' to itself. | ||
10 | |||
11 | Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> | ||
12 | --- | ||
13 | src/tests/attach.c | 2 +- | ||
14 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
15 | |||
16 | diff --git a/src/tests/attach.c b/src/tests/attach.c | ||
17 | index 2c77127..1c182d6 100644 | ||
18 | --- a/src/tests/attach.c | ||
19 | +++ b/src/tests/attach.c | ||
20 | @@ -251,7 +251,7 @@ static int test_attach_cmd(struct lxc_container *ct) | ||
21 | { | ||
22 | int ret; | ||
23 | pid_t pid; | ||
24 | - char *argv[] = {"cmp", "-s", "/sbin/init", "/bin/busybox", NULL}; | ||
25 | + char *argv[] = {"cmp", "-s", "/sbin/init", "/sbin/init", NULL}; | ||
26 | lxc_attach_command_t command = {"cmp", argv}; | ||
27 | lxc_attach_options_t attach_options = LXC_ATTACH_OPTIONS_DEFAULT; | ||
28 | |||
29 | -- | ||
30 | 2.7.4 | ||
31 | |||