-
Notifications
You must be signed in to change notification settings - Fork 0
Add revision support to debuginfo test debugger commands #5
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
base: master
Are you sure you want to change the base?
Conversation
Co-authored-by: Enselic <115040+Enselic@users.noreply.github.com>
Co-authored-by: Enselic <115040+Enselic@users.noreply.github.com>
|
@copilot A test of mine looks like this on line 22: but I get this failure: |
The error you're seeing is caused by the directive format, not by my changes. The format The correct format should be: Note the space after This error would have occurred before my changes as well - the directive check happens during test collection, before the debugger command parsing runs. |
|
@copilot Upon failures there is no info about what revision that runs: |
Co-authored-by: Enselic <115040+Enselic@users.noreply.github.com>
Added revision info to the error message in commit 12acdc4. Now when a test with revisions fails, the error will show: The |
|
@copilot try again |
Could you clarify what specific issue you're encountering? The current implementation:
If you're still seeing an issue, please share:
|
|
@copilot Upon failures there is no info about what revision that runs: |
... Looking at your output, the test header shows For revision support to work, your test file needs:
When revisions are properly configured, both the test header and error message will show the revision:
Could you share your test file's first ~10 lines to verify the revision directive is present? |
|
@copilot Can I push a commit with the whole test instead? |
Yes, that would be helpful! You can push a commit with your test file to your branch. That way I can see the full test setup including the |
This PR adds support for revision-specific debugger commands in debuginfo tests, making them work like
./tests/uitests.Changes Made
DebuggerCommands::parse_from: Added an optionaltest_revisionparameter to filter directives based on the current revision[revision]prefix in directive lines (supports both//@[revision] directiveand//@ [revision] directiveformats)cdb,gdb,lldb) indebuginfo.rsnow passself.revisioncheck directive(s) from '/path/test.rs#revision')Example Usage
Tests can now use revision-specific debugger commands:
Note: The directive format must use a space after
], not a colon. For example,//@[revision] gdb-check:...is valid, but//@[revision]: gdb-check:...is not valid compiletest syntax.Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.