0
0
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:
ichizok
2022-01-29 12:10:43 +00:00
committed by Bram Moolenaar
parent 585ee07cfe
commit 24714a1916
3 changed files with 100 additions and 0 deletions

View File

@@ -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