Skip to content

Commit aef2f6d

Browse files
committed
test(patch): Ensure the patch actuall gets built
1 parent 4e5af28 commit aef2f6d

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

tests/testsuite/patch.rs

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1479,8 +1479,17 @@ fn patch_in_virtual() {
14791479
.file("foo/src/lib.rs", r#""#)
14801480
.build();
14811481

1482-
p.cargo("check").run();
1483-
p.cargo("check")
1482+
p.cargo("check -p foo")
1483+
.with_stderr_data(str![[r#"
1484+
[UPDATING] `dummy-registry` index
1485+
[LOCKING] 1 package to latest compatible version
1486+
[CHECKING] bar v0.1.0 ([ROOT]/foo/bar)
1487+
[CHECKING] foo v0.1.0 ([ROOT]/foo/foo)
1488+
[FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
1489+
1490+
"#]])
1491+
.run();
1492+
p.cargo("check -p foo")
14841493
.with_stderr_data(str![[r#"
14851494
[FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
14861495

0 commit comments

Comments
 (0)