File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/tools/compiletest/src Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -260,9 +260,9 @@ impl TestProps {
260260 props. load_from ( testfile, cfg, config) ;
261261
262262 match ( props. pass_mode , props. fail_mode ) {
263- ( None , None ) => props. fail_mode = Some ( FailMode :: Check ) ,
264- ( Some ( _) , None ) | ( None , Some ( _) ) => { }
263+ ( None , None ) if config. mode == Mode :: Ui => props. fail_mode = Some ( FailMode :: Check ) ,
265264 ( Some ( _) , Some ( _) ) => panic ! ( "cannot use a *-fail and *-pass mode together" ) ,
265+ _ => { }
266266 }
267267
268268 props
@@ -522,8 +522,8 @@ impl TestProps {
522522 }
523523
524524 pub fn pass_mode ( & self , config : & Config ) -> Option < PassMode > {
525- if !self . ignore_pass && self . fail_mode . is_none ( ) && config . mode == Mode :: Ui {
526- if let ( mode @ Some ( _) , Some ( _ ) ) = ( config. force_pass_mode , self . pass_mode ) {
525+ if !self . ignore_pass && self . fail_mode . is_none ( ) {
526+ if let mode @ Some ( _) = config. force_pass_mode {
527527 return mode;
528528 }
529529 }
You can’t perform that action at this time.
0 commit comments