@@ -788,6 +788,21 @@ mod snapshot {
788
788
) ;
789
789
}
790
790
791
+ #[ test]
792
+ fn build_compiler_lld_opt_in ( ) {
793
+ with_lld_opt_in_targets ( vec ! [ host_target( ) ] , || {
794
+ let ctx = TestCtx :: new ( ) ;
795
+ insta:: assert_snapshot!(
796
+ ctx. config( "build" )
797
+ . path( "compiler" )
798
+ . render_steps( ) , @r"
799
+ [build] llvm <host>
800
+ [build] rustc 0 <host> -> rustc 1 <host>
801
+ [build] rustc 0 <host> -> LldWrapper 1 <host>
802
+ " ) ;
803
+ } ) ;
804
+ }
805
+
791
806
#[ test]
792
807
fn build_library_no_explicit_stage ( ) {
793
808
let ctx = TestCtx :: new ( ) ;
@@ -1694,21 +1709,6 @@ mod snapshot {
1694
1709
" ) ;
1695
1710
}
1696
1711
1697
- #[ test]
1698
- fn test_lld_opt_in ( ) {
1699
- with_lld_opt_in_targets ( vec ! [ host_target( ) ] , || {
1700
- let ctx = TestCtx :: new ( ) ;
1701
- insta:: assert_snapshot!(
1702
- ctx. config( "build" )
1703
- . path( "compiler" )
1704
- . render_steps( ) , @r"
1705
- [build] llvm <host>
1706
- [build] rustc 0 <host> -> rustc 1 <host>
1707
- [build] rustc 0 <host> -> LldWrapper 1 <host>
1708
- " ) ;
1709
- } ) ;
1710
- }
1711
-
1712
1712
#[ test]
1713
1713
fn doc_library_no_std_target ( ) {
1714
1714
let ctx = TestCtx :: new ( ) ;
@@ -1741,17 +1741,10 @@ mod snapshot {
1741
1741
}
1742
1742
1743
1743
#[ test]
1744
+ #[ should_panic]
1744
1745
fn doc_compiler_stage_0 ( ) {
1745
1746
let ctx = TestCtx :: new ( ) ;
1746
- insta:: assert_snapshot!(
1747
- ctx. config( "doc" )
1748
- . path( "compiler" )
1749
- . stage( 0 )
1750
- . render_steps( ) , @r"
1751
- [build] rustdoc 0 <host>
1752
- [build] llvm <host>
1753
- [doc] rustc 0 <host>
1754
- " ) ;
1747
+ ctx. config ( "doc" ) . path ( "compiler" ) . stage ( 0 ) . run ( ) ;
1755
1748
}
1756
1749
1757
1750
#[ test]
@@ -1789,16 +1782,10 @@ mod snapshot {
1789
1782
}
1790
1783
1791
1784
#[ test]
1785
+ #[ should_panic]
1792
1786
fn doc_compiletest_stage_0 ( ) {
1793
1787
let ctx = TestCtx :: new ( ) ;
1794
- insta:: assert_snapshot!(
1795
- ctx. config( "doc" )
1796
- . path( "src/tools/compiletest" )
1797
- . stage( 0 )
1798
- . render_steps( ) , @r"
1799
- [build] rustdoc 0 <host>
1800
- [doc] Compiletest <host>
1801
- " ) ;
1788
+ ctx. config ( "doc" ) . path ( "src/tools/compiletest" ) . stage ( 0 ) . run ( ) ;
1802
1789
}
1803
1790
1804
1791
#[ test]
0 commit comments