Skip to content
Snippets Groups Projects
Commit c4261815 authored by Robin Gustafsson's avatar Robin Gustafsson
Browse files

Avoid deadlock in test when sharing process group

parent 812514b7
No related branches found
No related tags found
No related merge requests found
Pipeline #119293 canceled
From: Robin Gustafsson <robin@rgson.se>
Date: Sun, 22 Mar 2020 15:44:15 +0100
Subject: Avoid deadlock in test when sharing process group
This test will wait for all other processes in the process group to
exit. This causes a deadlock when the tests themselves are running in a
subprocess (e.g. by autopkgtest).
Forwarded: https://github.com/laravel/framework/pull/32067
---
tests/Filesystem/FilesystemTest.php | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tests/Filesystem/FilesystemTest.php b/tests/Filesystem/FilesystemTest.php
index 176434e..943a989 100755
--- a/tests/Filesystem/FilesystemTest.php
+++ b/tests/Filesystem/FilesystemTest.php
@@ -448,6 +448,8 @@ class FilesystemTest extends TestCase
$content = str_repeat('123456', 1000000);
$result = 1;
+ posix_setpgid(0, 0);
+
for ($i = 1; $i <= 20; $i++) {
$pid = pcntl_fork();
0001-Test-against-installed-version.patch
0002-Load-test-dependencies.patch
0003-Avoid-deadlock-in-test-when-sharing-process-group.patch
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment