diff options
Diffstat (limited to 'test')
-rwxr-xr-x | test/fs/fs.sh | 8 | ||||
-rwxr-xr-x | test/utils/fs-print.exp | 4 |
2 files changed, 8 insertions, 4 deletions
diff --git a/test/fs/fs.sh b/test/fs/fs.sh index d3c17e7a5..a462a4362 100755 --- a/test/fs/fs.sh +++ b/test/fs/fs.sh | |||
@@ -25,8 +25,12 @@ rm -fr ~/_firejail_test_* | |||
25 | echo "TESTING: /sys/fs access (test/fs/sys_fs.exp)" | 25 | echo "TESTING: /sys/fs access (test/fs/sys_fs.exp)" |
26 | ./sys_fs.exp | 26 | ./sys_fs.exp |
27 | 27 | ||
28 | echo "TESTING: kmsg access (test/fs/kmsg.exp)" | 28 | if [ -c /dev/kmsg ]; then |
29 | ./kmsg.exp | 29 | echo "TESTING: kmsg access (test/fs/kmsg.exp)" |
30 | ./kmsg.exp | ||
31 | else | ||
32 | echo "TESTING SKIP: /dev/kmsg not available" | ||
33 | fi | ||
30 | 34 | ||
31 | echo "TESTING: read/write /var/tmp (test/fs/fs_var_tmp.exp)" | 35 | echo "TESTING: read/write /var/tmp (test/fs/fs_var_tmp.exp)" |
32 | ./fs_var_tmp.exp | 36 | ./fs_var_tmp.exp |
diff --git a/test/utils/fs-print.exp b/test/utils/fs-print.exp index 450945b66..21f6f68ff 100755 --- a/test/utils/fs-print.exp +++ b/test/utils/fs-print.exp | |||
@@ -22,11 +22,11 @@ expect { | |||
22 | } | 22 | } |
23 | expect { | 23 | expect { |
24 | timeout {puts "TESTING ERROR 2\n";exit} | 24 | timeout {puts "TESTING ERROR 2\n";exit} |
25 | "blacklist /dev/kmsg" | 25 | "blacklist /proc/kmsg" |
26 | } | 26 | } |
27 | expect { | 27 | expect { |
28 | timeout {puts "TESTING ERROR 3\n";exit} | 28 | timeout {puts "TESTING ERROR 3\n";exit} |
29 | "blacklist /proc/kmsg" | 29 | "blacklist /bin/su" |
30 | } | 30 | } |
31 | after 100 | 31 | after 100 |
32 | puts "\nall done\n" | 32 | puts "\nall done\n" |