tests: remove the (broken) exit_gracefully check

I previously tried to fix the check, but could only come up with a fix which
required removing our module pre-loading, which makes the tests considerably
more expensive. Instead, let’s just remove the check.
This commit is contained in:
Michael Stapelberg
2017-09-14 11:30:58 +02:00
parent e5ee11d896
commit 69a6887ab2
3 changed files with 5 additions and 15 deletions

View File

@ -100,14 +100,8 @@ my $i3_pid;
my $i3_autostart;
END {
# testcases which start i3 manually should always call exit_gracefully
# on their own. Lets see, whether they really did.
if (! $i3_autostart) {
return unless $i3_pid;
$tester->ok(undef, 'testcase called exit_gracefully()');
}
# Skip the remaining cleanup for testcases which set i3_autostart => 0:
return if !defined($i3_pid) && !$i3_autostart;
# don't trigger SIGCHLD handler
local $SIG{CHLD};