@@ -20,9 +20,9 @@ use tracing::*;
20
20
use crate :: common:: {
21
21
Assembly , Codegen , CodegenUnits , CompareMode , Config , CoverageMap , CoverageRun , Crashes ,
22
22
DebugInfo , Debugger , FailMode , Incremental , JsDocTest , MirOpt , PassMode , Pretty , RunMake ,
23
- RunPassValgrind , Rustdoc , RustdocJson , TestPaths , UI_EXTENSIONS , UI_FIXED , UI_RUN_STDERR ,
24
- UI_RUN_STDOUT , UI_STDERR , UI_STDOUT , UI_SVG , UI_WINDOWS_SVG , Ui , expected_output_path,
25
- incremental_dir , output_base_dir, output_base_name, output_testname_unique,
23
+ Rustdoc , RustdocJson , TestPaths , UI_EXTENSIONS , UI_FIXED , UI_RUN_STDERR , UI_RUN_STDOUT ,
24
+ UI_STDERR , UI_STDOUT , UI_SVG , UI_WINDOWS_SVG , Ui , expected_output_path, incremental_dir ,
25
+ output_base_dir, output_base_name, output_testname_unique,
26
26
} ;
27
27
use crate :: compute_diff:: { write_diff, write_filtered_diff} ;
28
28
use crate :: errors:: { self , Error , ErrorKind } ;
@@ -49,7 +49,6 @@ mod run_make;
49
49
mod rustdoc;
50
50
mod rustdoc_json;
51
51
mod ui;
52
- mod valgrind;
53
52
// tidy-alphabet-end
54
53
55
54
#[ cfg( test) ]
@@ -253,7 +252,6 @@ impl<'test> TestCx<'test> {
253
252
self . fatal ( "cannot use should-ice in a test that is not cfail" ) ;
254
253
}
255
254
match self . config . mode {
256
- RunPassValgrind => self . run_valgrind_test ( ) ,
257
255
Pretty => self . run_pretty_test ( ) ,
258
256
DebugInfo => self . run_debuginfo_test ( ) ,
259
257
Codegen => self . run_codegen_test ( ) ,
@@ -1500,8 +1498,7 @@ impl<'test> TestCx<'test> {
1500
1498
Crashes => {
1501
1499
set_mir_dump_dir ( & mut rustc) ;
1502
1500
}
1503
- RunPassValgrind | Pretty | DebugInfo | Rustdoc | RustdocJson | RunMake
1504
- | CodegenUnits | JsDocTest => {
1501
+ Pretty | DebugInfo | Rustdoc | RustdocJson | RunMake | CodegenUnits | JsDocTest => {
1505
1502
// do not use JSON output
1506
1503
}
1507
1504
}
@@ -2655,33 +2652,6 @@ impl<'test> TestCx<'test> {
2655
2652
}
2656
2653
}
2657
2654
2658
- // FIXME(jieyouxu): `run_rpass_test` is hoisted out here and not in incremental because
2659
- // apparently valgrind test falls back to `run_rpass_test` if valgrind isn't available, which
2660
- // seems highly questionable to me.
2661
- fn run_rpass_test ( & self ) {
2662
- let emit_metadata = self . should_emit_metadata ( self . pass_mode ( ) ) ;
2663
- let should_run = self . run_if_enabled ( ) ;
2664
- let proc_res = self . compile_test ( should_run, emit_metadata) ;
2665
-
2666
- if !proc_res. status . success ( ) {
2667
- self . fatal_proc_rec ( "compilation failed!" , & proc_res) ;
2668
- }
2669
-
2670
- // FIXME(#41968): Move this check to tidy?
2671
- if !errors:: load_errors ( & self . testpaths . file , self . revision ) . is_empty ( ) {
2672
- self . fatal ( "run-pass tests with expected warnings should be moved to ui/" ) ;
2673
- }
2674
-
2675
- if let WillExecute :: Disabled = should_run {
2676
- return ;
2677
- }
2678
-
2679
- let proc_res = self . exec_compiled_test ( ) ;
2680
- if !proc_res. status . success ( ) {
2681
- self . fatal_proc_rec ( "test run failed!" , & proc_res) ;
2682
- }
2683
- }
2684
-
2685
2655
fn aggressive_rm_rf ( & self , path : & Path ) -> io:: Result < ( ) > {
2686
2656
for e in path. read_dir ( ) ? {
2687
2657
let entry = e?;
0 commit comments