From aa3f201cedfb4bc0697b1552eacd35afb88313b5 Mon Sep 17 00:00:00 2001 From: Benjamin Sergeant Date: Fri, 17 May 2019 15:45:31 -0700 Subject: [PATCH] one cpu on windows for executing tests --- test/run.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/run.py b/test/run.py index 70fdc450..6ce5dc24 100755 --- a/test/run.py +++ b/test/run.py @@ -461,6 +461,11 @@ def main(): args = parser.parse_args() + # Windows does not play nice with multiple files opened by different processes + # "The process cannot access the file because it is being used by another process" + if platform.system() == 'Windows': + args.cpu_count = 1 + # Default sanitizer is tsan sanitizer = args.sanitizer