mirror of
https://github.com/vim/vim.git
synced 2025-10-23 08:44:20 -04:00
patch 8.2.4250: channel out callback test is flaky on Mac
Problem: Channel out callback test is flaky on Mac.
Solution: Assign high priority to the test process. (Ozaki Kiichi,
closes #9653)
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
# This requires Python 2.6 or later.
|
||||
|
||||
from __future__ import print_function
|
||||
import os
|
||||
import sys
|
||||
import time
|
||||
|
||||
@@ -27,6 +28,13 @@ if __name__ == "__main__":
|
||||
if sys.argv[1].startswith("quit"):
|
||||
sys.exit(0)
|
||||
|
||||
if os.getenv('CI'):
|
||||
try:
|
||||
import thread_util
|
||||
thread_util.set_high_priority()
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
while True:
|
||||
typed = sys.stdin.readline()
|
||||
if typed == "": # EOF -- stop
|
||||
|
||||
Reference in New Issue
Block a user