diff options
author | netblue30 <netblue30@yahoo.com> | 2017-03-04 14:47:47 -0500 |
---|---|---|
committer | netblue30 <netblue30@yahoo.com> | 2017-03-04 14:47:47 -0500 |
commit | 76fcd85a1f441de1192194fcb712c35b7d985b69 (patch) | |
tree | 5fab3a982cb12d9891c06e2a462d3c71887c6416 /test/environment/nice.exp | |
parent | fix and document firemon --nowrap (diff) | |
download | firejail-76fcd85a1f441de1192194fcb712c35b7d985b69.tar.gz firejail-76fcd85a1f441de1192194fcb712c35b7d985b69.tar.zst firejail-76fcd85a1f441de1192194fcb712c35b7d985b69.zip |
testing
Diffstat (limited to 'test/environment/nice.exp')
-rwxr-xr-x | test/environment/nice.exp | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/test/environment/nice.exp b/test/environment/nice.exp index 2c00d1485..50e789c9e 100755 --- a/test/environment/nice.exp +++ b/test/environment/nice.exp | |||
@@ -77,7 +77,48 @@ expect { | |||
77 | "top" | 77 | "top" |
78 | } | 78 | } |
79 | 79 | ||
80 | sleep 1 | ||
81 | send -- "exit\r" | ||
82 | after 100 | ||
83 | |||
84 | |||
85 | # negative nice value should result in nice=0 | ||
86 | send -- "firejail --nice=-5\r" | ||
87 | expect { | ||
88 | timeout {puts "TESTING ERROR 17\n";exit} | ||
89 | "Child process initialized" | ||
90 | } | ||
91 | sleep 1 | ||
92 | |||
93 | send -- "top -b -n 1\r" | ||
94 | expect { | ||
95 | timeout {puts "TESTING ERROR 18\n";exit} | ||
96 | $env(USER) | ||
97 | } | ||
98 | expect { | ||
99 | timeout {puts "TESTING ERROR 19\n";exit} | ||
100 | "0" | ||
101 | } | ||
102 | expect { | ||
103 | timeout {puts "TESTING ERROR 20\n";exit} | ||
104 | "bash" | ||
105 | } | ||
106 | expect { | ||
107 | timeout {puts "TESTING ERROR 21\n";exit} | ||
108 | $env(USER) | ||
109 | } | ||
110 | expect { | ||
111 | timeout {puts "TESTING ERROR 22\n";exit} | ||
112 | "0" | ||
113 | } | ||
114 | expect { | ||
115 | timeout {puts "TESTING ERROR 23\n";exit} | ||
116 | "top" | ||
117 | } | ||
80 | 118 | ||
119 | sleep 1 | ||
120 | send -- "exit\r" | ||
121 | after 100 | ||
81 | 122 | ||
82 | puts "\nall done\n" | 123 | puts "\nall done\n" |
83 | 124 | ||