diff options
author | netblue30 <netblue30@yahoo.com> | 2017-12-06 18:06:46 -0500 |
---|---|---|
committer | netblue30 <netblue30@yahoo.com> | 2017-12-06 18:06:46 -0500 |
commit | 30a15fe9d0907da202914b87111c700235319296 (patch) | |
tree | f198cc3ec1bb9b2c19e5410d952ca3951fcd0cae /test/utils/cpu-print.exp | |
parent | testing (diff) | |
download | firejail-30a15fe9d0907da202914b87111c700235319296.tar.gz firejail-30a15fe9d0907da202914b87111c700235319296.tar.zst firejail-30a15fe9d0907da202914b87111c700235319296.zip |
testing
Diffstat (limited to 'test/utils/cpu-print.exp')
-rwxr-xr-x | test/utils/cpu-print.exp | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/test/utils/cpu-print.exp b/test/utils/cpu-print.exp index f639f7c9f..714745106 100755 --- a/test/utils/cpu-print.exp +++ b/test/utils/cpu-print.exp | |||
@@ -16,7 +16,11 @@ sleep 1 | |||
16 | send -- "cat /proc/self/status | grep Cpus\r" | 16 | send -- "cat /proc/self/status | grep Cpus\r" |
17 | expect { | 17 | expect { |
18 | timeout {puts "TESTING ERROR 1\n";exit} | 18 | timeout {puts "TESTING ERROR 1\n";exit} |
19 | "Cpus_allowed_list: 0" | 19 | "Cpus" |
20 | } | ||
21 | expect { | ||
22 | timeout {puts "TESTING ERROR 2\n";exit} | ||
23 | "_allowed_list: 0" | ||
20 | } | 24 | } |
21 | after 100 | 25 | after 100 |
22 | send -- "exit\r" | 26 | send -- "exit\r" |
@@ -25,7 +29,7 @@ sleep 1 | |||
25 | 29 | ||
26 | send -- "firejail --name=test --cpu=1\r" | 30 | send -- "firejail --name=test --cpu=1\r" |
27 | expect { | 31 | expect { |
28 | timeout {puts "TESTING ERROR 1\n";exit} | 32 | timeout {puts "TESTING ERROR 3\n";exit} |
29 | "Child process initialized" | 33 | "Child process initialized" |
30 | } | 34 | } |
31 | sleep 1 | 35 | sleep 1 |
@@ -33,8 +37,12 @@ sleep 1 | |||
33 | spawn $env(SHELL) | 37 | spawn $env(SHELL) |
34 | send -- "firejail --cpu.print=test\r" | 38 | send -- "firejail --cpu.print=test\r" |
35 | expect { | 39 | expect { |
36 | timeout {puts "TESTING ERROR 2\n";exit} | 40 | timeout {puts "TESTING ERROR 4\n";exit} |
37 | "Cpus_allowed_list: 1" | 41 | "Cpus" |
42 | } | ||
43 | expect { | ||
44 | timeout {puts "TESTING ERROR 5\n";exit} | ||
45 | "_allowed_list: 1" | ||
38 | } | 46 | } |
39 | after 100 | 47 | after 100 |
40 | puts "\nall done\n" | 48 | puts "\nall done\n" |