@@ -1603,6 +1603,7 @@ fn dep_of_artifact_dep_same_target_specified() {
1603
1603
1604
1604
[dependencies]
1605
1605
bar = {{ path = "bar", artifact = "bin", target = "{target}" }}
1606
+ one = {{ path = "one", artifact = "bin", target = "x86_64-fortanix-unknown-sgx" }}
1606
1607
"# ,
1607
1608
) ,
1608
1609
)
@@ -1621,6 +1622,19 @@ fn dep_of_artifact_dep_same_target_specified() {
1621
1622
) ,
1622
1623
)
1623
1624
. file ( "bar/src/main.rs" , "fn main() {}" )
1625
+ . file (
1626
+ "one/Cargo.toml" ,
1627
+ & format ! (
1628
+ r#"
1629
+ [package]
1630
+ name = "one"
1631
+ version = "0.1.0"
1632
+ [dependencies]
1633
+ baz = {{ path = "../baz" }}
1634
+ "# ,
1635
+ ) ,
1636
+ )
1637
+ . file ( "one/src/main.rs" , "fn main() {}" )
1624
1638
. file (
1625
1639
"baz/Cargo.toml" ,
1626
1640
r#"
@@ -1636,8 +1650,9 @@ fn dep_of_artifact_dep_same_target_specified() {
1636
1650
p. cargo ( "check -Z bindeps" )
1637
1651
. masquerade_as_nightly_cargo ( & [ "bindeps" ] )
1638
1652
. with_stderr_data ( str![ [ r#"
1639
- [LOCKING] 2 packages to latest compatible versions
1653
+ [LOCKING] 3 packages to latest compatible versions
1640
1654
[COMPILING] baz v0.1.0 ([ROOT]/foo/baz)
1655
+ [COMPILING] one v0.1.0 ([ROOT]/foo/one)
1641
1656
[COMPILING] bar v0.1.0 ([ROOT]/foo/bar)
1642
1657
[CHECKING] foo v0.1.0 ([ROOT]/foo)
1643
1658
[FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
@@ -1646,16 +1661,19 @@ fn dep_of_artifact_dep_same_target_specified() {
1646
1661
. with_status ( 0 )
1647
1662
. run ( ) ;
1648
1663
1649
- // TODO This command currently fails due to a bug in cargo but it should be fixed so that it succeeds in the future.
1650
1664
p. cargo ( "tree -Z bindeps" )
1651
1665
. masquerade_as_nightly_cargo ( & [ "bindeps" ] )
1652
- . with_stderr_data (
1653
- r#"...
1654
- no entry found for key
1655
- ...
1656
- "# ,
1657
- )
1658
- . with_status ( 101 )
1666
+ . with_stdout_data ( str![
1667
+ r#"
1668
+ foo v0.1.0 ([ROOT]/foo)
1669
+ ├── bar v0.1.0 ([ROOT]/foo/bar)
1670
+ │ └── baz v0.1.0 ([ROOT]/foo/baz)
1671
+ └── one v0.1.0 ([ROOT]/foo/one)
1672
+ └── baz v0.1.0 ([ROOT]/foo/baz)
1673
+
1674
+ "#
1675
+ ] )
1676
+ . with_status ( 0 )
1659
1677
. run ( ) ;
1660
1678
}
1661
1679
0 commit comments