diff options
author | Reiner Herrmann <reiner@reiner-h.de> | 2017-04-16 22:53:13 +0200 |
---|---|---|
committer | Reiner Herrmann <reiner@reiner-h.de> | 2017-04-16 22:54:05 +0200 |
commit | a158c11455beaa8a81b912e63ddb48a269c99859 (patch) | |
tree | a0c2047397bce1811a441477a68483a614d7dec6 /test/fs | |
parent | test: use ~ instead of /home for non-/home homedirs (diff) | |
download | firejail-a158c11455beaa8a81b912e63ddb48a269c99859.tar.gz firejail-a158c11455beaa8a81b912e63ddb48a269c99859.tar.zst firejail-a158c11455beaa8a81b912e63ddb48a269c99859.zip |
test: wc would print 1 for the 'total: 0' line
Diffstat (limited to 'test/fs')
-rwxr-xr-x | test/fs/whitelist-empty.exp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/fs/whitelist-empty.exp b/test/fs/whitelist-empty.exp index e1c3ffb4a..9e4406263 100755 --- a/test/fs/whitelist-empty.exp +++ b/test/fs/whitelist-empty.exp | |||
@@ -14,36 +14,36 @@ expect { | |||
14 | } | 14 | } |
15 | sleep 1 | 15 | sleep 1 |
16 | 16 | ||
17 | send -- "ls -l ~/ | wc -l\r" | 17 | send -- "ls -l ~\r" |
18 | expect { | 18 | expect { |
19 | timeout {puts "TESTING ERROR 1\n";exit} | 19 | timeout {puts "TESTING ERROR 1\n";exit} |
20 | "0" | 20 | "0" |
21 | } | 21 | } |
22 | 22 | ||
23 | send -- "ls -l /tmp | wc -l\r" | 23 | send -- "ls -l /tmp\r" |
24 | expect { | 24 | expect { |
25 | timeout {puts "TESTING ERROR 2\n";exit} | 25 | timeout {puts "TESTING ERROR 2\n";exit} |
26 | "0" | 26 | "0" |
27 | } | 27 | } |
28 | 28 | ||
29 | send -- "ls -l /media | wc -l\r" | 29 | send -- "ls -l /media\r" |
30 | expect { | 30 | expect { |
31 | timeout {puts "TESTING ERROR 3\n";exit} | 31 | timeout {puts "TESTING ERROR 3\n";exit} |
32 | "0" | 32 | "0" |
33 | } | 33 | } |
34 | 34 | ||
35 | send -- "ls -l /var | wc -l\r" | 35 | send -- "ls -l /var\r" |
36 | expect { | 36 | expect { |
37 | timeout {puts "TESTING ERROR 4\n";exit} | 37 | timeout {puts "TESTING ERROR 4\n";exit} |
38 | "0" | 38 | "0" |
39 | } | 39 | } |
40 | 40 | ||
41 | send -- "ls -l /dev | wc -l\r" | 41 | send -- "ls -l /dev\r" |
42 | expect { | 42 | expect { |
43 | timeout {puts "TESTING ERROR 5\n";exit} | 43 | timeout {puts "TESTING ERROR 5\n";exit} |
44 | "0" | 44 | "0" |
45 | } | 45 | } |
46 | send -- "ls -l /opt | wc -l\r" | 46 | send -- "ls -l /opt\r" |
47 | expect { | 47 | expect { |
48 | timeout {puts "TESTING ERROR 6\n";exit} | 48 | timeout {puts "TESTING ERROR 6\n";exit} |
49 | "0" | 49 | "0" |