diff options
Diffstat (limited to 'test/environment/deterministic-shutdown.exp')
-rwxr-xr-x | test/environment/deterministic-shutdown.exp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/environment/deterministic-shutdown.exp b/test/environment/deterministic-shutdown.exp new file mode 100755 index 000000000..3931893be --- /dev/null +++ b/test/environment/deterministic-shutdown.exp | |||
@@ -0,0 +1,16 @@ | |||
1 | #!/usr/bin/expect -f | ||
2 | # This file is part of Firejail project | ||
3 | # Copyright (C) 2014-2021 Firejail Authors | ||
4 | # License GPL v2 | ||
5 | |||
6 | set timeout 5 | ||
7 | spawn $env(SHELL) | ||
8 | match_max 100000 | ||
9 | |||
10 | send -- "firejail --deterministic-shutdown bash -c \"sleep 10 & exec sleep 1\"\r" | ||
11 | expect { | ||
12 | timeout {puts "TESTING ERROR 0\n";exit} | ||
13 | "Parent is shutting down, bye..." | ||
14 | } | ||
15 | |||
16 | puts "\nall done\n" | ||