When there are split files, put unattached stdout at the end of the last file. (#3234)

This is consistent with the goal of trying to push unattached stdout to
the bottom of the test file. The current logic had a single file in
mind, and was not adapted for split file logic.

Addresses
https://github.com/carbon-language/carbon-lang/pull/3217#discussion_r1323584624

Note this depends on #3233
This commit is contained in:
Jon Ross-Perkins
2023-09-15 21:56:42 +00:00
committed by GitHub
parent 75282462d4
commit ec9d73e471
7 changed files with 41 additions and 30 deletions
+4 -3
View File
@@ -6,11 +6,12 @@
// CHECK:STDERR: unattached message 3
// CHECK:STDERR: unattached message 4
// CHECK:STDOUT: 3 args: `default_args`, `a.carbon`, `b.carbon`
// CHECK:STDOUT: unattached message 1
// CHECK:STDOUT: unattached message 2
// --- a.carbon
aaa
// --- b.carbon
bbb
// CHECK:STDOUT: 3 args: `default_args`, `a.carbon`, `b.carbon`
// CHECK:STDOUT: unattached message 1
// CHECK:STDOUT: unattached message 2