From 76fcd85a1f441de1192194fcb712c35b7d985b69 Mon Sep 17 00:00:00 2001 From: netblue30 Date: Sat, 4 Mar 2017 14:47:47 -0500 Subject: testing --- test/environment/nice.exp | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) (limited to 'test/environment') 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 { "top" } +sleep 1 +send -- "exit\r" +after 100 + + +# negative nice value should result in nice=0 +send -- "firejail --nice=-5\r" +expect { + timeout {puts "TESTING ERROR 17\n";exit} + "Child process initialized" +} +sleep 1 + +send -- "top -b -n 1\r" +expect { + timeout {puts "TESTING ERROR 18\n";exit} + $env(USER) +} +expect { + timeout {puts "TESTING ERROR 19\n";exit} + "0" +} +expect { + timeout {puts "TESTING ERROR 20\n";exit} + "bash" +} +expect { + timeout {puts "TESTING ERROR 21\n";exit} + $env(USER) +} +expect { + timeout {puts "TESTING ERROR 22\n";exit} + "0" +} +expect { + timeout {puts "TESTING ERROR 23\n";exit} + "top" +} +sleep 1 +send -- "exit\r" +after 100 puts "\nall done\n" -- cgit v1.2.3-54-g00ecf