You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Auto merge of #14618 - weihanglo:relax-more, r=epage
test: relax compiler panic assertions
### What does this PR try to resolve?
Minimize the panic output assertion per request from <#14602 (comment)>.
Instead of snapshotting the entire panic message,
here we only check the precense of our custom messaage.
### How should we test and review this PR?
Test suite passes.
[ERROR] Error loading target specification: Could not find specification for target "unknown-target-triple". Run `rustc --print target-list` for a list of built-in targets
// TODO: This command currently fails due to a bug in cargo but it should be fixed so that it succeeds in the future.
1572
1572
p.cargo("tree -Z bindeps")
1573
1573
.masquerade_as_nightly_cargo(&["bindeps"])
1574
-
.with_stdout_data(str![[""]])
1575
-
.with_stderr_data(str![[r#"
1576
-
thread 'main' panicked at src/cargo/[..]:
1577
-
activated_features for invalid package: features did not find PackageId { name: "bindep", version: "0.0.0", source: "[..]" } NormalOrDev
1578
-
[NOTE] run with `RUST_BACKTRACE=1` environment variable to display a backtrace
1579
-
1580
-
"#]])
1574
+
.with_stdout_data("")
1575
+
.with_stderr_data(r#"...
1576
+
[..]activated_features for invalid package: features did not find PackageId { name: "bindep", version: "0.0.0", source: "[..]" } NormalOrDev[..]
1577
+
...
1578
+
"#)
1581
1579
.with_status(101)
1582
1580
.run();
1583
1581
}
@@ -3246,7 +3244,7 @@ Caused by:
3246
3244
Caused by:
3247
3245
process didn't exit successfully: `rustc [..] ([EXIT_STATUS]: 1)
3248
3246
--- stderr
3249
-
[ERROR] Error loading target specification: Could not find specification for target "custom-target". Run `rustc --print target-list` for a list of built-in targets
0 commit comments