@@ -741,6 +741,21 @@ mod snapshot {
741
741
) ;
742
742
}
743
743
744
+ #[ test]
745
+ fn build_compiler_lld_opt_in ( ) {
746
+ with_lld_opt_in_targets ( vec ! [ host_target( ) ] , || {
747
+ let ctx = TestCtx :: new ( ) ;
748
+ insta:: assert_snapshot!(
749
+ ctx. config( "build" )
750
+ . path( "compiler" )
751
+ . render_steps( ) , @r"
752
+ [build] llvm <host>
753
+ [build] rustc 0 <host> -> rustc 1 <host>
754
+ [build] rustc 0 <host> -> LldWrapper 1 <host>
755
+ " ) ;
756
+ } ) ;
757
+ }
758
+
744
759
#[ test]
745
760
fn build_library_no_explicit_stage ( ) {
746
761
let ctx = TestCtx :: new ( ) ;
@@ -1695,21 +1710,6 @@ mod snapshot {
1695
1710
" ) ;
1696
1711
}
1697
1712
1698
- #[ test]
1699
- fn test_lld_opt_in ( ) {
1700
- with_lld_opt_in_targets ( vec ! [ host_target( ) ] , || {
1701
- let ctx = TestCtx :: new ( ) ;
1702
- insta:: assert_snapshot!(
1703
- ctx. config( "build" )
1704
- . path( "compiler" )
1705
- . render_steps( ) , @r"
1706
- [build] llvm <host>
1707
- [build] rustc 0 <host> -> rustc 1 <host>
1708
- [build] rustc 0 <host> -> LldWrapper 1 <host>
1709
- " ) ;
1710
- } ) ;
1711
- }
1712
-
1713
1713
#[ test]
1714
1714
fn doc_library_no_std_target ( ) {
1715
1715
let ctx = TestCtx :: new ( ) ;
@@ -1742,17 +1742,10 @@ mod snapshot {
1742
1742
}
1743
1743
1744
1744
#[ test]
1745
+ #[ should_panic]
1745
1746
fn doc_compiler_stage_0 ( ) {
1746
1747
let ctx = TestCtx :: new ( ) ;
1747
- insta:: assert_snapshot!(
1748
- ctx. config( "doc" )
1749
- . path( "compiler" )
1750
- . stage( 0 )
1751
- . render_steps( ) , @r"
1752
- [build] rustdoc 0 <host>
1753
- [build] llvm <host>
1754
- [doc] rustc 0 <host>
1755
- " ) ;
1748
+ ctx. config ( "doc" ) . path ( "compiler" ) . stage ( 0 ) . run ( ) ;
1756
1749
}
1757
1750
1758
1751
#[ test]
@@ -1790,16 +1783,10 @@ mod snapshot {
1790
1783
}
1791
1784
1792
1785
#[ test]
1786
+ #[ should_panic]
1793
1787
fn doc_compiletest_stage_0 ( ) {
1794
1788
let ctx = TestCtx :: new ( ) ;
1795
- insta:: assert_snapshot!(
1796
- ctx. config( "doc" )
1797
- . path( "src/tools/compiletest" )
1798
- . stage( 0 )
1799
- . render_steps( ) , @r"
1800
- [build] rustdoc 0 <host>
1801
- [doc] Compiletest <host>
1802
- " ) ;
1789
+ ctx. config ( "doc" ) . path ( "src/tools/compiletest" ) . stage ( 0 ) . run ( ) ;
1803
1790
}
1804
1791
1805
1792
#[ test]
0 commit comments