Skip to content

Commit c359894

Browse files
committed
debug
1 parent 3ee3321 commit c359894

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

run-tests.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1533,6 +1533,7 @@ function run_all_tests_parallel(array $test_files, array $env, $redir_tested): v
15331533
$toWrite = null;
15341534
$toExcept = null;
15351535
if (stream_select($toRead, $toWrite, $toExcept, 10)) {
1536+
echo "Select " . count($toRead) . "\n";
15361537
foreach ($toRead as $workerSock) {
15371538
$i = array_search($workerSock, $workerSocks);
15381539
if ($i === false) {
@@ -1700,8 +1701,9 @@ function send_message($stream, array $message): void
17001701

17011702
function kill_children(array $children): void
17021703
{
1703-
foreach ($children as $child) {
1704+
foreach ($children as $i => $child) {
17041705
if ($child) {
1706+
echo "Killing child $i\n";
17051707
proc_terminate($child);
17061708
}
17071709
}

0 commit comments

Comments
 (0)