[lldb][test] Fix flaky missing-oso.cpp that mixed stderr and stdout (#238110)
`missing-oso.cpp` expects `error:` line is before
`(lldb) image dump separate-debug-info --errors-only`, but the error
message is
from the event handler thread. The main thread does not wait for that
event and runs the next `-o` command, so the `error:` line can land
before, between or after the `image dump` echo and output. `2>&1` joins
both writers in one pipe and nothing orders them.
The fix does:
- drop `2>&1` from the `%t.two` run and send stderr to `%t.two.err`,
use two `FileCheck` to check each,
- `--implicit-check-not=error:` on the stderr check replaces both
`TWO-NOT: error:` lines, so the error must still appear exactly once,
- `-l 28` is now `-l 30`, the new line of `main`
GitOrigin-RevId: 2d6c6a1ec82b9724cfdd472f23eff6c991d2bc6c
1 file changed