diff options
author | netblue30 <netblue30@yahoo.com> | 2016-04-23 20:35:52 -0400 |
---|---|---|
committer | netblue30 <netblue30@yahoo.com> | 2016-04-23 20:35:52 -0400 |
commit | c729d5927d5db964e71bfe30a269acf26786fef7 (patch) | |
tree | 192c74fa0dae843fd2b59044df6e0c78925f424a /test/option-shutdown2.exp | |
parent | make testing (diff) | |
download | firejail-c729d5927d5db964e71bfe30a269acf26786fef7.tar.gz firejail-c729d5927d5db964e71bfe30a269acf26786fef7.tar.zst firejail-c729d5927d5db964e71bfe30a269acf26786fef7.zip |
testing
Diffstat (limited to 'test/option-shutdown2.exp')
-rwxr-xr-x | test/option-shutdown2.exp | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/test/option-shutdown2.exp b/test/option-shutdown2.exp deleted file mode 100755 index 403bc30be..000000000 --- a/test/option-shutdown2.exp +++ /dev/null | |||
@@ -1,42 +0,0 @@ | |||
1 | #!/usr/bin/expect -f | ||
2 | |||
3 | set timeout 10 | ||
4 | spawn $env(SHELL) | ||
5 | match_max 100000 | ||
6 | |||
7 | set firstspawn $spawn_id | ||
8 | |||
9 | send -- "firejail --name=shutdowntesting ./catchsignal.sh\r" | ||
10 | expect { | ||
11 | timeout {puts "TESTING ERROR 0\n";exit} | ||
12 | "Child process initialized" | ||
13 | } | ||
14 | sleep 2 | ||
15 | |||
16 | spawn $env(SHELL) | ||
17 | send -- "firejail --shutdown=shutdowntesting\r" | ||
18 | |||
19 | set spawn_id $firstspawn | ||
20 | expect { | ||
21 | timeout {puts "TESTING ERROR 1\n";exit} | ||
22 | "1" | ||
23 | } | ||
24 | expect { | ||
25 | timeout {puts "TESTING ERROR 2\n";exit} | ||
26 | "2" | ||
27 | } | ||
28 | expect { | ||
29 | timeout {puts "TESTING ERROR 3\n";exit} | ||
30 | "3" | ||
31 | } | ||
32 | expect { | ||
33 | timeout {puts "TESTING ERROR 4\n";exit} | ||
34 | "4" | ||
35 | } | ||
36 | expect { | ||
37 | timeout {puts "TESTING ERROR 5\n";exit} | ||
38 | "5" | ||
39 | } | ||
40 | sleep 1 | ||
41 | |||
42 | puts "\nalldone\n" | ||