@@ -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 ( ) ;
@@ -1747,21 +1762,6 @@ mod snapshot {
1747
1762
" ) ;
1748
1763
}
1749
1764
1750
- #[ test]
1751
- fn test_lld_opt_in ( ) {
1752
- with_lld_opt_in_targets ( vec ! [ host_target( ) ] , || {
1753
- let ctx = TestCtx :: new ( ) ;
1754
- insta:: assert_snapshot!(
1755
- ctx. config( "build" )
1756
- . path( "compiler" )
1757
- . render_steps( ) , @r"
1758
- [build] llvm <host>
1759
- [build] rustc 0 <host> -> rustc 1 <host>
1760
- [build] rustc 0 <host> -> LldWrapper 1 <host>
1761
- " ) ;
1762
- } ) ;
1763
- }
1764
-
1765
1765
#[ test]
1766
1766
fn doc_library_no_std_target ( ) {
1767
1767
let ctx = TestCtx :: new ( ) ;
@@ -1794,17 +1794,10 @@ mod snapshot {
1794
1794
}
1795
1795
1796
1796
#[ test]
1797
+ #[ should_panic]
1797
1798
fn doc_compiler_stage_0 ( ) {
1798
1799
let ctx = TestCtx :: new ( ) ;
1799
- insta:: assert_snapshot!(
1800
- ctx. config( "doc" )
1801
- . path( "compiler" )
1802
- . stage( 0 )
1803
- . render_steps( ) , @r"
1804
- [build] rustdoc 0 <host>
1805
- [build] llvm <host>
1806
- [doc] rustc 0 <host>
1807
- " ) ;
1800
+ ctx. config ( "doc" ) . path ( "compiler" ) . stage ( 0 ) . run ( ) ;
1808
1801
}
1809
1802
1810
1803
#[ test]
@@ -1842,16 +1835,10 @@ mod snapshot {
1842
1835
}
1843
1836
1844
1837
#[ test]
1838
+ #[ should_panic]
1845
1839
fn doc_compiletest_stage_0 ( ) {
1846
1840
let ctx = TestCtx :: new ( ) ;
1847
- insta:: assert_snapshot!(
1848
- ctx. config( "doc" )
1849
- . path( "src/tools/compiletest" )
1850
- . stage( 0 )
1851
- . render_steps( ) , @r"
1852
- [build] rustdoc 0 <host>
1853
- [doc] Compiletest <host>
1854
- " ) ;
1841
+ ctx. config ( "doc" ) . path ( "src/tools/compiletest" ) . stage ( 0 ) . run ( ) ;
1855
1842
}
1856
1843
1857
1844
#[ test]
0 commit comments