File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
src/tools/compiletest/src Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -696,9 +696,16 @@ pub fn output_testname_unique(
696
696
testpaths : & TestPaths ,
697
697
revision : Option < & str > ,
698
698
) -> PathBuf {
699
+ // Coverage tests use the same test files for multiple test modes,
700
+ // so each mode should have a separate output directory.
701
+ let coverage_mode = match config. mode {
702
+ mode @ ( CoverageMap | RunCoverage ) => mode. to_str ( ) ,
703
+ _ => "" ,
704
+ } ;
699
705
let mode = config. compare_mode . as_ref ( ) . map_or ( "" , |m| m. to_str ( ) ) ;
700
706
let debugger = config. debugger . as_ref ( ) . map_or ( "" , |m| m. to_str ( ) ) ;
701
707
PathBuf :: from ( & testpaths. file . file_stem ( ) . unwrap ( ) )
708
+ . with_extra_extension ( coverage_mode)
702
709
. with_extra_extension ( revision. unwrap_or ( "" ) )
703
710
. with_extra_extension ( mode)
704
711
. with_extra_extension ( debugger)
You can’t perform that action at this time.
0 commit comments