about summary refs log tree commit diff
path: root/debian/patches/Use-bash-explicitly-when-running-the-tests.patch
blob: c88953c491b0ae4013257e932207c584518d5f98 (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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
From: Michael Biebl <biebl@debian.org>
Date: Wed, 27 Jan 2016 22:14:09 +0100
Subject: Use bash explicitly when running the tests

The trap handling in dash seems to have issues [Bug-Debian].
So explicitly use bash when running the tests.

Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=390433
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=761146
---
 src/tests/test-general-with-expect.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/tests/test-general-with-expect.c b/src/tests/test-general-with-expect.c
index c6abdcc..a5ef9e3 100644
--- a/src/tests/test-general-with-expect.c
+++ b/src/tests/test-general-with-expect.c
@@ -225,33 +225,33 @@ test_nm_utils_kill_child (void)
 	int err;
 	GLogLevelFlags fatal_mask;
 	char *argv_watchdog[] = {
-			"sh",
+			"bash",
 			"-c",
 			"sleep 4; "
 			"kill -KILL 0; #watchdog for #" TEST_TOKEN,
 			NULL,
 		};
 	char *argv1[] = {
-			"sh",
+			"bash",
 			"-c",
 			"trap \"sleep 0.3; exit 10\" EXIT; "
 			"sleep 100000; exit $? #" TEST_TOKEN,
 			NULL,
 		};
 	char *argv2[] = {
-			"sh",
+			"bash",
 			"-c",
 			"exit 47; #" TEST_TOKEN,
 			NULL,
 		};
 	char *argv3[] = {
-			"sh",
+			"bash",
 			"-c",
 			"trap \"exit 47\" TERM; while true; do :; done; #" TEST_TOKEN,
 			NULL,
 		};
 	char *argv4[] = {
-			"sh",
+			"bash",
 			"-c",
 			"trap \"while true; do :; done\" TERM; while true; do :; done; #" TEST_TOKEN,
 			NULL,