aboutsummaryrefslogtreecommitdiffstats
path: root/test/environment/deterministic-shutdown.exp
blob: dbbe226bb9a1936ae4f37532efe7cf19f694f840 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/expect -f
# This file is part of Firejail project
# Copyright (C) 2014-2022 Firejail Authors
# License GPL v2

set timeout 5
spawn $env(SHELL)
match_max 100000

send -- "firejail --deterministic-shutdown bash -c \"sleep 10 & exec sleep 1\"\r"
expect {
	timeout {puts "TESTING ERROR 0\n";exit}
	"Parent is shutting down, bye..."
}

puts "\nall done\n"