summaryrefslogtreecommitdiffstats
path: root/recipes-containers/lxc/files/tests-our-init-is-not-busybox.patch
blob: 4c9bf6525aee14d93f3451eaf0325db2324d2c38 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
From b53169dc4c53f9ef64f8cb06dd9af97182577698 Mon Sep 17 00:00:00 2001
From: Mark Asselstine <mark.asselstine@windriver.com>
Date: Thu, 31 May 2018 15:00:34 -0400
Subject: [PATCH] tests: our init is not busybox

Since we are using 'bash' as the init (see our updates to the busybox
template) we can't compare '/sbin/init' and 'busybox'. Actually we are
really only interested in the fact 'cmp' is being run and not the
result, so simplify by comparing '/sbin/init' to itself.

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
---
 src/tests/attach.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/tests/attach.c b/src/tests/attach.c
index 2c77127..1c182d6 100644
--- a/src/tests/attach.c
+++ b/src/tests/attach.c
@@ -251,7 +251,7 @@ static int test_attach_cmd(struct lxc_container *ct)
 {
 	int ret;
 	pid_t pid;
-	char *argv[] = {"cmp", "-s", "/sbin/init", "/bin/busybox", NULL};
+	char *argv[] = {"cmp", "-s", "/sbin/init", "/sbin/init", NULL};
 	lxc_attach_command_t command = {"cmp", argv};
 	lxc_attach_options_t attach_options = LXC_ATTACH_OPTIONS_DEFAULT;
 
-- 
2.7.4