aboutsummaryrefslogtreecommitdiffstats
path: root/test/fs/private-homedir.exp
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2016-11-12 08:53:08 -0500
committerLibravatar netblue30 <netblue30@yahoo.com>2016-11-12 08:53:08 -0500
commit5c495665ae5c8a258579111ea24229f1bde52b49 (patch)
tree07bf359c07a2e05d09b3addbc6560d4d7f1ceacd /test/fs/private-homedir.exp
parentbugfix: --private=dir where dir is the user home directory (diff)
downloadfirejail-5c495665ae5c8a258579111ea24229f1bde52b49.tar.gz
firejail-5c495665ae5c8a258579111ea24229f1bde52b49.tar.zst
firejail-5c495665ae5c8a258579111ea24229f1bde52b49.zip
testing
Diffstat (limited to 'test/fs/private-homedir.exp')
-rwxr-xr-xtest/fs/private-homedir.exp25
1 files changed, 25 insertions, 0 deletions
diff --git a/test/fs/private-homedir.exp b/test/fs/private-homedir.exp
new file mode 100755
index 000000000..35085948a
--- /dev/null
+++ b/test/fs/private-homedir.exp
@@ -0,0 +1,25 @@
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
7spawn $env(SHELL)
8match_max 100000
9
10send -- "firejail --private=~\r"
11expect {
12 timeout {puts "TESTING ERROR 1\n";exit}
13 "Child process initialized"
14}
15after 100
16
17send -- "ls -l ~\r"
18expect {
19 timeout {puts "TESTING ERROR 2\n";exit}
20 "total 0"
21}
22after 100
23
24puts "\nall done\n"
25