@@ -1631,33 +1631,59 @@ mod snapshot {
1631
1631
#[ test]
1632
1632
fn doc_core_no_std_target ( ) {
1633
1633
let ctx = TestCtx :: new ( ) ;
1634
- insta:: assert_snapshot!(
1635
- ctx. config( "doc" )
1636
- . path( "core" )
1637
- . override_target_no_std( & host_target( ) )
1638
- . render_steps( ) , @r"
1639
- [build] llvm <host>
1640
- [build] rustc 0 <host> -> rustc 1 <host>
1641
- [build] rustc 0 <host> -> LldWrapper 1 <host>
1642
- [build] rustdoc 0 <host>
1643
- [doc] std 1 <host> crates=[core]
1644
- " ) ;
1634
+ if host_target ( ) == "x86_64-unknown-linux-gnu" {
1635
+ insta:: assert_snapshot!(
1636
+ ctx. config( "doc" )
1637
+ . path( "core" )
1638
+ . override_target_no_std( & host_target( ) )
1639
+ . render_steps( ) , @r"
1640
+ [build] llvm <host>
1641
+ [build] rustc 0 <host> -> rustc 1 <host>
1642
+ [build] rustc 0 <host> -> LldWrapper 1 <host>
1643
+ [build] rustdoc 0 <host>
1644
+ [doc] std 1 <host> crates=[core]
1645
+ " ) ;
1646
+ } else {
1647
+ insta:: assert_snapshot!(
1648
+ ctx. config( "doc" )
1649
+ . path( "core" )
1650
+ . override_target_no_std( & host_target( ) )
1651
+ . render_steps( ) , @r"
1652
+ [build] llvm <host>
1653
+ [build] rustc 0 <host> -> rustc 1 <host>
1654
+ [build] rustdoc 0 <host>
1655
+ [doc] std 1 <host> crates=[core]
1656
+ " ) ;
1657
+ }
1645
1658
}
1646
1659
1647
1660
#[ test]
1648
1661
fn doc_library_no_std_target ( ) {
1649
1662
let ctx = TestCtx :: new ( ) ;
1650
- insta:: assert_snapshot!(
1651
- ctx. config( "doc" )
1652
- . path( "library" )
1653
- . override_target_no_std( & host_target( ) )
1654
- . render_steps( ) , @r"
1655
- [build] llvm <host>
1656
- [build] rustc 0 <host> -> rustc 1 <host>
1657
- [build] rustc 0 <host> -> LldWrapper 1 <host>
1658
- [build] rustdoc 0 <host>
1659
- [doc] std 1 <host> crates=[alloc,core]
1660
- " ) ;
1663
+ if host_target ( ) == "x86_64-unknown-linux-gnu" {
1664
+ insta:: assert_snapshot!(
1665
+ ctx. config( "doc" )
1666
+ . path( "library" )
1667
+ . override_target_no_std( & host_target( ) )
1668
+ . render_steps( ) , @r"
1669
+ [build] llvm <host>
1670
+ [build] rustc 0 <host> -> rustc 1 <host>
1671
+ [build] rustc 0 <host> -> LldWrapper 1 <host>
1672
+ [build] rustdoc 0 <host>
1673
+ [doc] std 1 <host> crates=[alloc,core]
1674
+ " ) ;
1675
+ } else {
1676
+ insta:: assert_snapshot!(
1677
+ ctx. config( "doc" )
1678
+ . path( "library" )
1679
+ . override_target_no_std( & host_target( ) )
1680
+ . render_steps( ) , @r"
1681
+ [build] llvm <host>
1682
+ [build] rustc 0 <host> -> rustc 1 <host>
1683
+ [build] rustdoc 0 <host>
1684
+ [doc] std 1 <host> crates=[alloc,core]
1685
+ " ) ;
1686
+ }
1661
1687
}
1662
1688
1663
1689
#[ test]
0 commit comments