Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for capturing console output to FileTest. #4339

Merged
merged 3 commits into from
Sep 27, 2024

Conversation

jonmeow
Copy link
Contributor

@jonmeow jonmeow commented Sep 25, 2024

One of the things that ClangRunnerTest is doing is capturing stderr/stdout because clang prints to it directly. This adds support for that to FileTest.

I'm renaming the current capture_output field to dump_output because the name is ambiguous after this change, and the flag is already named --dump_output. It's still not great, but at least it's more distinct.

Note ClangRunner still doesn't use the vfs; that still needs work. I'm just moving the NoArgs test over as a trivial test of the functionality.

@github-actions github-actions bot added the explorer Action items related to Carbon explorer code label Sep 25, 2024
@jonmeow jonmeow force-pushed the capture-stdout branch 2 times, most recently from 56c3c9f to 155de09 Compare September 25, 2024 22:13
testing/file_test/README.md Outdated Show resolved Hide resolved
testing/file_test/file_test_base.cpp Outdated Show resolved Hide resolved
Copy link
Contributor

@geoffromer geoffromer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but it looks like a test is failing.

@jonmeow jonmeow added this pull request to the merge queue Sep 27, 2024
Merged via the queue into carbon-language:trunk with commit 73c6f67 Sep 27, 2024
8 checks passed
@jonmeow jonmeow deleted the capture-stdout branch September 27, 2024 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
explorer Action items related to Carbon explorer code toolchain
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants