aboutsummaryrefslogtreecommitdiffstats
path: root/test/environment
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2018-04-01 07:48:11 -0400
committerLibravatar netblue30 <netblue30@yahoo.com>2018-04-01 07:48:11 -0400
commit1fb1bfe20fbde64d769e846b1581ce021d03e864 (patch)
treeb284305324ca31fa5c0b2b318a9dbeaae146da55 /test/environment
parentmerges (diff)
downloadfirejail-1fb1bfe20fbde64d769e846b1581ce021d03e864.tar.gz
firejail-1fb1bfe20fbde64d769e846b1581ce021d03e864.tar.zst
firejail-1fb1bfe20fbde64d769e846b1581ce021d03e864.zip
testing
Diffstat (limited to 'test/environment')
-rwxr-xr-xtest/environment/csh.exp14
-rwxr-xr-xtest/environment/zsh.exp14
2 files changed, 28 insertions, 0 deletions
diff --git a/test/environment/csh.exp b/test/environment/csh.exp
index 7b9fe7dc4..10a278ebc 100755
--- a/test/environment/csh.exp
+++ b/test/environment/csh.exp
@@ -30,6 +30,20 @@ expect {
30 "/bin/csh" 30 "/bin/csh"
31} 31}
32send -- "exit\r" 32send -- "exit\r"
33sleep 1
34
35send -- "firejail --shell=none --csh\r"
36expect {
37 timeout {puts "TESTING ERROR 3\n";exit}
38 "shell=none was already specified"
39}
40after 100
41
42send -- "firejail --csh --shell=none\r"
43expect {
44 timeout {puts "TESTING ERROR 4\n";exit}
45 "a shell was already specified"
46}
33after 100 47after 100
34 48
35puts "\n" 49puts "\n"
diff --git a/test/environment/zsh.exp b/test/environment/zsh.exp
index 65fe440c7..e7f610e98 100755
--- a/test/environment/zsh.exp
+++ b/test/environment/zsh.exp
@@ -30,6 +30,20 @@ expect {
30 "/bin/zsh" 30 "/bin/zsh"
31} 31}
32send -- "exit\r" 32send -- "exit\r"
33sleep 1
34
35send -- "firejail --shell=none --zsh\r"
36expect {
37 timeout {puts "TESTING ERROR 3\n";exit}
38 "shell=none was already specified"
39}
40after 100
41
42send -- "firejail --zsh --shell=none\r"
43expect {
44 timeout {puts "TESTING ERROR 4\n";exit}
45 "a shell was already specified"
46}
33after 100 47after 100
34 48
35puts "\nall done\n" 49puts "\nall done\n"