Make included files insert before main files (#6899)

This is so that the last file is more likely what we're trying to
compile in tests. Just splitting out the churn-y change of reordering.

Assisted-by: Google Antigravity with Gemini
This commit is contained in:
Jon Ross-Perkins authored and GitHub committed 2026-03-12 21:01:16 +00:00
1 parent 4df2b6ea9d
commit 610094ccfd
14 files changed
+2700 -2700

No files matched your search

+2 -2
View File
@@ -104,10 +104,10 @@ static auto CollectOutputIfCapturing(TestFile& test_file) -> void {
auto RunTestFile(const FileTestBase& test_base, bool dump_output,
TestFile& test_file) -> ErrorOr<Success> {
llvm::SmallVector<TestFile::Split*> all_splits;
for (auto& split : test_file.file_splits) {
for (auto& split : test_file.include_file_splits) {
all_splits.push_back(&split);
}
for (auto& split : test_file.include_file_splits) {
for (auto& split : test_file.file_splits) {
all_splits.push_back(&split);
}