Просмотр исходного кода

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)
...
```
Jon Ross-Perkins 1 год назад
Родитель
Сommit
8512e9198e
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      testing/file_test/file_test_base.cpp

+ 1 - 1
testing/file_test/file_test_base.cpp

@@ -356,7 +356,7 @@ static auto SingleThreaded(llvm::ArrayRef<FileTestInfo> 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