@@ -6,7 +6,7 @@ use crate::common::{Assembly, Incremental, JsDocTest, MirOpt, RunMake, RustdocJs
66use crate :: common:: { Codegen , CodegenUnits , DebugInfo , Debugger , Rustdoc } ;
77use crate :: common:: { CompareMode , FailMode , PassMode } ;
88use crate :: common:: { Config , TestPaths } ;
9- use crate :: common:: { CoverageMap , Pretty , RunCoverage , RunPassValgrind } ;
9+ use crate :: common:: { CoverageMap , CoverageRun , Pretty , RunPassValgrind } ;
1010use crate :: common:: { UI_COVERAGE , UI_COVERAGE_MAP , UI_RUN_STDERR , UI_RUN_STDOUT } ;
1111use crate :: compute_diff:: { write_diff, write_filtered_diff} ;
1212use crate :: errors:: { self , Error , ErrorKind } ;
@@ -257,7 +257,7 @@ impl<'test> TestCx<'test> {
257257 Assembly => self . run_assembly_test ( ) ,
258258 JsDocTest => self . run_js_doc_test ( ) ,
259259 CoverageMap => self . run_coverage_map_test ( ) ,
260- RunCoverage => self . run_coverage_test ( ) ,
260+ CoverageRun => self . run_coverage_run_test ( ) ,
261261 }
262262 }
263263
@@ -510,7 +510,7 @@ impl<'test> TestCx<'test> {
510510 }
511511 }
512512
513- fn run_coverage_test ( & self ) {
513+ fn run_coverage_run_test ( & self ) {
514514 let should_run = self . run_if_enabled ( ) ;
515515 let proc_res = self . compile_test ( should_run, Emit :: None ) ;
516516
@@ -549,7 +549,7 @@ impl<'test> TestCx<'test> {
549549 let mut profraw_paths = vec ! [ profraw_path] ;
550550 let mut bin_paths = vec ! [ self . make_exe_name( ) ] ;
551551
552- if self . config . suite == "run- coverage-rustdoc" {
552+ if self . config . suite == "coverage-run -rustdoc" {
553553 self . run_doctests_for_coverage ( & mut profraw_paths, & mut bin_paths) ;
554554 }
555555
@@ -2193,7 +2193,7 @@ impl<'test> TestCx<'test> {
21932193 || self . is_vxworks_pure_static ( )
21942194 || self . config . target . contains ( "bpf" )
21952195 || !self . config . target_cfg ( ) . dynamic_linking
2196- || matches ! ( self . config. mode, CoverageMap | RunCoverage )
2196+ || matches ! ( self . config. mode, CoverageMap | CoverageRun )
21972197 {
21982198 // We primarily compile all auxiliary libraries as dynamic libraries
21992199 // to avoid code size bloat and large binaries as much as possible
@@ -2395,7 +2395,7 @@ impl<'test> TestCx<'test> {
23952395 }
23962396 }
23972397 DebugInfo => { /* debuginfo tests must be unoptimized */ }
2398- CoverageMap | RunCoverage => {
2398+ CoverageMap | CoverageRun => {
23992399 // Coverage mappings and coverage reports are affected by
24002400 // optimization level, so they ignore the optimize-tests
24012401 // setting and set an optimization level in their mode's
@@ -2478,7 +2478,7 @@ impl<'test> TestCx<'test> {
24782478 // by `compile-flags`.
24792479 rustc. arg ( "-Copt-level=2" ) ;
24802480 }
2481- RunCoverage => {
2481+ CoverageRun => {
24822482 rustc. arg ( "-Cinstrument-coverage" ) ;
24832483 // Coverage reports are sometimes sensitive to optimizations,
24842484 // and the current snapshots assume `opt-level=2` unless
0 commit comments