Skip to content

Commit 73bbf64

Browse files
authored
[k2] enable wait_queue_empty test (#1580)
Signed-off-by: Petr Shumilov <p.shumilov@vkteam.ru>
1 parent c21e48a commit 73bbf64

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/phpt/fork/011_queue.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ function g ($x) {
8282
}
8383

8484
$res = [];
85-
while ($t = wait_queue_next ($q)) {
85+
while (!wait_queue_empty($q)) {
86+
$t = wait_queue_next ($q);
8687
$res[] = wait($t);
8788
}
8889
sort ($res);

0 commit comments

Comments
 (0)