From 8512e9198e3d97f331da84699043999cc30bd099 Mon Sep 17 00:00:00 2001 From: Jon Ross-Perkins Date: Wed, 23 Apr 2025 17:58:09 -0700 Subject: [PATCH] Fix single-threaded runs for single test (#5350) Typo fix. ``` $ bazel test :file_test_base_test --test_output=all ... Running tests with 128 thread(s) ... $ bazel test :file_test_base_test --test_output=all --test_arg=--gtest_filter=FileTestBaseTest.testing/file_test/testdata/two_files.carbon ... Running tests with 1 thread(s) ... ``` --- testing/file_test/file_test_base.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testing/file_test/file_test_base.cpp b/testing/file_test/file_test_base.cpp index c2900d983799..0804a19c2c7c 100644 --- a/testing/file_test/file_test_base.cpp +++ b/testing/file_test/file_test_base.cpp @@ -356,7 +356,7 @@ static auto SingleThreaded(llvm::ArrayRef tests) -> bool { found_test_to_run = true; } // 0 or 1 test will be run, so single-threaded. - return false; + return true; } // Runs the test in the section that would be inside a lock, possibly inside a