Skip to content

ctest: add support for skipping more items and prepare for ctest-test port #4555

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

Merged
merged 1 commit into from
Jul 17, 2025

Conversation

mbyx
Copy link
Contributor

@mbyx mbyx commented Jul 17, 2025

Description

Adds better support for skipping unions, fields, and tests for field types. Additionally makes needed changes to other parts of ctest-next so that the port PRs for ctest-test and libc-test don't have too many changes to ctest-next.

Sources

Checklist

  • Relevant tests in libc-test/semver have been updated
  • No placeholder or unstable values like *LAST or *MAX are
    included (see #3131)
  • Tested locally (cd libc-test && cargo test --target mytarget);
    especially relevant for platforms that may not be checked in CI

@rustbot rustbot added ctest Issues relating to the ctest crate S-waiting-on-review labels Jul 17, 2025
Copy link
Contributor

@tgross35 tgross35 left a comment

Choose a reason for hiding this comment

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

Few small requests but mostly looks pretty good to me

@mbyx mbyx force-pushed the ctest-generator-frontend branch 2 times, most recently from 044b46b to e304174 Compare July 17, 2025 08:29
@mbyx mbyx requested a review from tgross35 July 17, 2025 08:30
@@ -26,24 +27,29 @@ impl TranslationError {
Self {
kind,
source: source.to_string(),
span,
span: format!(
"line {}, column {}, in {}",
Copy link
Contributor

Choose a reason for hiding this comment

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

It's kind of standard to do foo.rs:10:20, some terminals will hyperlink that for you

"{fname}:{line}:{col}",
// FIXME(ctest): ...
fname = "<unknown file>"
line = span.start().line,
col = span.start().column,

@mbyx mbyx force-pushed the ctest-generator-frontend branch from e304174 to 575c83e Compare July 17, 2025 08:42
@mbyx mbyx requested a review from tgross35 July 17, 2025 08:44
Copy link
Contributor

@tgross35 tgross35 left a comment

Choose a reason for hiding this comment

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

Awesome, thanks!

@tgross35 tgross35 enabled auto-merge July 17, 2025 08:45
@tgross35 tgross35 added this pull request to the merge queue Jul 17, 2025
Merged via the queue into rust-lang:main with commit 891cb8c Jul 17, 2025
48 of 52 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ctest Issues relating to the ctest crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants