summaryrefslogtreecommitdiffstats
path: root/src/testdir/test_channel_pipe.py
diff options
context:
space:
mode:
authorichizok <gclient.gaap@gmail.com>2022-01-29 12:10:43 +0000
committerBram Moolenaar <Bram@vim.org>2022-01-29 12:10:43 +0000
commit24714a191659b89c26bd7acd5934590d1c5c51d2 (patch)
treeeaef8990f758b8bfccddbbc276c64660ce16a1b4 /src/testdir/test_channel_pipe.py
parent585ee07cfef307b2fc828537e0d31fdc22d7e79f (diff)
patch 8.2.4250: channel out callback test is flaky on Macv8.2.4250
Problem: Channel out callback test is flaky on Mac. Solution: Assign high priority to the test process. (Ozaki Kiichi, closes #9653)
Diffstat (limited to 'src/testdir/test_channel_pipe.py')
-rw-r--r--src/testdir/test_channel_pipe.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/testdir/test_channel_pipe.py b/src/testdir/test_channel_pipe.py
index 5202908e7e..22e58b4d14 100644
--- a/src/testdir/test_channel_pipe.py
+++ b/src/testdir/test_channel_pipe.py
@@ -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