aboutsummaryrefslogtreecommitdiffstats
path: root/test/utils/join4.exp
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2016-09-07 10:23:07 -0400
committerLibravatar netblue30 <netblue30@yahoo.com>2016-09-07 10:23:07 -0400
commitae1111abb8b8eee2a7605d3b535a16680dba3925 (patch)
treeab3302123e7d43ae8646e78cd5739796e2df5ccf /test/utils/join4.exp
parentMerge pull request #769 from manevich/xpra (diff)
downloadfirejail-ae1111abb8b8eee2a7605d3b535a16680dba3925.tar.gz
firejail-ae1111abb8b8eee2a7605d3b535a16680dba3925.tar.zst
firejail-ae1111abb8b8eee2a7605d3b535a16680dba3925.zip
testcase for read_pid fix
Diffstat (limited to 'test/utils/join4.exp')
-rwxr-xr-xtest/utils/join4.exp38
1 files changed, 38 insertions, 0 deletions
diff --git a/test/utils/join4.exp b/test/utils/join4.exp
new file mode 100755
index 000000000..c367dd770
--- /dev/null
+++ b/test/utils/join4.exp
@@ -0,0 +1,38 @@
1#!/usr/bin/expect -f
2# This file is part of Firejail project
3# Copyright (C) 2014-2016 Firejail Authors
4# License GPL v2
5
6set timeout 10
7cd /home
8spawn $env(SHELL)
9match_max 100000
10
11send -- "firejail --name=123test\r"
12expect {
13 timeout {puts "TESTING ERROR 0\n";exit}
14 "Child process initialized"
15}
16sleep 2
17
18spawn $env(SHELL)
19send -- "firejail --join=123test\r"
20expect {
21 timeout {puts "TESTING ERROR 1\n";exit}
22 "Switching to pid"
23}
24sleep 1
25send -- "ps aux\r"
26expect {
27 timeout {puts "TESTING ERROR 2\n";exit}
28 "/bin/bash"
29}
30expect {
31 timeout {puts "TESTING ERROR 3\n";exit}
32 "/bin/bash"
33}
34
35send -- "exit"
36after 100
37
38puts "\nall done\n"