Skip to content

Commit 89af474

Browse files
committed
Add test for multiple console jobs, see #2586
1 parent d9e280d commit 89af474

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

misc/output_test.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -586,5 +586,25 @@ def test_explain_output(self):
586586
[1/3] [ -e input ] || touch input
587587
'''))
588588

589+
def test_issue_2586(self):
590+
"""This shouldn't hang"""
591+
plan = '''rule echo
592+
command = echo echo
593+
build dep: echo
594+
build console1: echo dep
595+
pool = console
596+
build console2: echo
597+
pool = console
598+
build all: phony console1 console2
599+
default all
600+
'''
601+
self.assertEqual(run(plan, flags='-j2', env={'NINJA_STATUS':''}), '''echo echo
602+
echo
603+
echo echo
604+
echo
605+
echo echo
606+
echo
607+
''')
608+
589609
if __name__ == '__main__':
590610
unittest.main()

0 commit comments

Comments
 (0)