-
-
Notifications
You must be signed in to change notification settings - Fork 3k
test: fix race in cargo_compile_with_invalid_code_in_deps #17203
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -874,17 +874,9 @@ fn cargo_compile_with_invalid_code_in_deps() { | |||||||||||||||||||||||||||||||||||||||||||
| .build(); | ||||||||||||||||||||||||||||||||||||||||||||
| p.cargo("build") | ||||||||||||||||||||||||||||||||||||||||||||
| .with_status(101) | ||||||||||||||||||||||||||||||||||||||||||||
| .with_stderr_data( | ||||||||||||||||||||||||||||||||||||||||||||
| str![[r#" | ||||||||||||||||||||||||||||||||||||||||||||
| [COMPILING] bar v0.1.0 ([ROOT]/bar) | ||||||||||||||||||||||||||||||||||||||||||||
| [COMPILING] baz v0.1.0 ([ROOT]/baz) | ||||||||||||||||||||||||||||||||||||||||||||
| [ERROR] could not compile `bar` (lib) due to 1 previous error | ||||||||||||||||||||||||||||||||||||||||||||
| [ERROR] could not compile `baz` (lib) due to 1 previous error | ||||||||||||||||||||||||||||||||||||||||||||
| ... | ||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
| "#]] | ||||||||||||||||||||||||||||||||||||||||||||
| .unordered(), | ||||||||||||||||||||||||||||||||||||||||||||
| ) | ||||||||||||||||||||||||||||||||||||||||||||
| .with_stderr_contains("[COMPILING] bar v0.1.0 [..]") | ||||||||||||||||||||||||||||||||||||||||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for the contribution. We probably don't want to go back and use contains methods. Please see cargo/crates/cargo-test-support/src/compare.rs Lines 3 to 7 in 2ceefa0
and cargo/crates/cargo-test-support/src/lib.rs Lines 807 to 822 in 2ceefa0
Have you reproduced it? Could you find other means to fix it, for example with
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks. Switched to
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The other way is this: It may work even without |
||||||||||||||||||||||||||||||||||||||||||||
| .with_stderr_contains("[COMPILING] baz v0.1.0 [..]") | ||||||||||||||||||||||||||||||||||||||||||||
| .with_stderr_contains("[ERROR] could not compile [..]") | ||||||||||||||||||||||||||||||||||||||||||||
| .run(); | ||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please see my previous comment #17203 (comment)
View changes since the review
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, I misunderstood the main concern.I'll deepseek!