]> git.proxmox.com Git - lxc.git/blob - debian/patches/extra/0002-tests-add-lxc.monitor.signal.pdeath.patch
bump version to 3.0.1+pve1-1
[lxc.git] / debian / patches / extra / 0002-tests-add-lxc.monitor.signal.pdeath.patch
1 From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2 From: Christian Brauner <christian.brauner@ubuntu.com>
3 Date: Mon, 16 Jul 2018 15:22:13 +0200
4 Subject: [PATCH] tests: add lxc.monitor.signal.pdeath
5
6 Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
7 (cherry picked from commit e53cd6d899bd50e07c8bb760371bfa2d5d4c56ef)
8 ---
9 src/tests/parse_config_file.c | 6 ++++++
10 1 file changed, 6 insertions(+)
11
12 diff --git a/src/tests/parse_config_file.c b/src/tests/parse_config_file.c
13 index 73b8fc3c..b6034ef2 100644
14 --- a/src/tests/parse_config_file.c
15 +++ b/src/tests/parse_config_file.c
16 @@ -911,6 +911,12 @@ int main(int argc, char *argv[])
17 goto non_test_error;
18 }
19
20 + ret = set_get_compare_clear_save_load(c, "lxc.monitor.signal.pdeath", "SIGKILL", tmpf, true);
21 + if (ret == 0) {
22 + lxc_error("%s\n", "lxc.hook.version");
23 + goto non_test_error;
24 + }
25 +
26 fret = EXIT_SUCCESS;
27
28 non_test_error:
29 --
30 2.11.0
31