aboutsummaryrefslogtreecommitdiffstats
path: root/test/environment
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2017-03-04 14:47:47 -0500
committerLibravatar netblue30 <netblue30@yahoo.com>2017-03-04 14:47:47 -0500
commit76fcd85a1f441de1192194fcb712c35b7d985b69 (patch)
tree5fab3a982cb12d9891c06e2a462d3c71887c6416 /test/environment
parentfix and document firemon --nowrap (diff)
downloadfirejail-76fcd85a1f441de1192194fcb712c35b7d985b69.tar.gz
firejail-76fcd85a1f441de1192194fcb712c35b7d985b69.tar.zst
firejail-76fcd85a1f441de1192194fcb712c35b7d985b69.zip
testing
Diffstat (limited to 'test/environment')
-rwxr-xr-xtest/environment/nice.exp41
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
80sleep 1
81send -- "exit\r"
82after 100
83
84
85# negative nice value should result in nice=0
86send -- "firejail --nice=-5\r"
87expect {
88 timeout {puts "TESTING ERROR 17\n";exit}
89 "Child process initialized"
90}
91sleep 1
92
93send -- "top -b -n 1\r"
94expect {
95 timeout {puts "TESTING ERROR 18\n";exit}
96 $env(USER)
97}
98expect {
99 timeout {puts "TESTING ERROR 19\n";exit}
100 "0"
101}
102expect {
103 timeout {puts "TESTING ERROR 20\n";exit}
104 "bash"
105}
106expect {
107 timeout {puts "TESTING ERROR 21\n";exit}
108 $env(USER)
109}
110expect {
111 timeout {puts "TESTING ERROR 22\n";exit}
112 "0"
113}
114expect {
115 timeout {puts "TESTING ERROR 23\n";exit}
116 "top"
117}
80 118
119sleep 1
120send -- "exit\r"
121after 100
81 122
82puts "\nall done\n" 123puts "\nall done\n"
83 124