From 1fb1bfe20fbde64d769e846b1581ce021d03e864 Mon Sep 17 00:00:00 2001 From: netblue30 Date: Sun, 1 Apr 2018 07:48:11 -0400 Subject: testing --- test/environment/csh.exp | 14 ++++++++++++++ test/environment/zsh.exp | 14 ++++++++++++++ 2 files changed, 28 insertions(+) (limited to 'test/environment') 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 { "/bin/csh" } send -- "exit\r" +sleep 1 + +send -- "firejail --shell=none --csh\r" +expect { + timeout {puts "TESTING ERROR 3\n";exit} + "shell=none was already specified" +} +after 100 + +send -- "firejail --csh --shell=none\r" +expect { + timeout {puts "TESTING ERROR 4\n";exit} + "a shell was already specified" +} after 100 puts "\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 { "/bin/zsh" } send -- "exit\r" +sleep 1 + +send -- "firejail --shell=none --zsh\r" +expect { + timeout {puts "TESTING ERROR 3\n";exit} + "shell=none was already specified" +} +after 100 + +send -- "firejail --zsh --shell=none\r" +expect { + timeout {puts "TESTING ERROR 4\n";exit} + "a shell was already specified" +} after 100 puts "\nall done\n" -- cgit v1.2.3-54-g00ecf