From c477e00dddb3f043b06f03357eeb2ed27343c677 Mon Sep 17 00:00:00 2001 From: smitsohu Date: Sat, 20 Nov 2021 14:06:06 +0100 Subject: testing --- test/environment/deterministic-shutdown.exp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 test/environment/deterministic-shutdown.exp (limited to 'test/environment/deterministic-shutdown.exp') 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 @@ +#!/usr/bin/expect -f +# This file is part of Firejail project +# Copyright (C) 2014-2021 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" -- cgit v1.2.3-70-g09d2