@@ -648,8 +648,6 @@ impl<'test> TestCx<'test> {
648
648
}
649
649
650
650
fn run_debuginfo_cdb_test ( & self ) {
651
- assert ! ( self . revision. is_none( ) , "revisions not relevant here" ) ;
652
-
653
651
let config = Config {
654
652
target_rustcflags : self . cleanup_debug_info_options ( & self . config . target_rustcflags ) ,
655
653
host_rustcflags : self . cleanup_debug_info_options ( & self . config . host_rustcflags ) ,
@@ -695,7 +693,12 @@ impl<'test> TestCx<'test> {
695
693
696
694
// Parse debugger commands etc from test files
697
695
let DebuggerCommands { commands, check_lines, breakpoint_lines, .. } =
698
- match DebuggerCommands :: parse_from ( & self . testpaths . file , self . config , prefixes) {
696
+ match DebuggerCommands :: parse_from (
697
+ & self . testpaths . file ,
698
+ self . config ,
699
+ prefixes,
700
+ self . revision ,
701
+ ) {
699
702
Ok ( cmds) => cmds,
700
703
Err ( e) => self . fatal ( & e) ,
701
704
} ;
@@ -756,8 +759,6 @@ impl<'test> TestCx<'test> {
756
759
}
757
760
758
761
fn run_debuginfo_gdb_test ( & self ) {
759
- assert ! ( self . revision. is_none( ) , "revisions not relevant here" ) ;
760
-
761
762
let config = Config {
762
763
target_rustcflags : self . cleanup_debug_info_options ( & self . config . target_rustcflags ) ,
763
764
host_rustcflags : self . cleanup_debug_info_options ( & self . config . host_rustcflags ) ,
@@ -783,7 +784,12 @@ impl<'test> TestCx<'test> {
783
784
} ;
784
785
785
786
let DebuggerCommands { commands, check_lines, breakpoint_lines } =
786
- match DebuggerCommands :: parse_from ( & self . testpaths . file , self . config , prefixes) {
787
+ match DebuggerCommands :: parse_from (
788
+ & self . testpaths . file ,
789
+ self . config ,
790
+ prefixes,
791
+ self . revision ,
792
+ ) {
787
793
Ok ( cmds) => cmds,
788
794
Err ( e) => self . fatal ( & e) ,
789
795
} ;
@@ -1005,8 +1011,6 @@ impl<'test> TestCx<'test> {
1005
1011
}
1006
1012
1007
1013
fn run_debuginfo_lldb_test ( & self ) {
1008
- assert ! ( self . revision. is_none( ) , "revisions not relevant here" ) ;
1009
-
1010
1014
if self . config . lldb_python_dir . is_none ( ) {
1011
1015
self . fatal ( "Can't run LLDB test because LLDB's python path is not set." ) ;
1012
1016
}
@@ -1059,7 +1063,12 @@ impl<'test> TestCx<'test> {
1059
1063
1060
1064
// Parse debugger commands etc from test files
1061
1065
let DebuggerCommands { commands, check_lines, breakpoint_lines, .. } =
1062
- match DebuggerCommands :: parse_from ( & self . testpaths . file , self . config , prefixes) {
1066
+ match DebuggerCommands :: parse_from (
1067
+ & self . testpaths . file ,
1068
+ self . config ,
1069
+ prefixes,
1070
+ self . revision ,
1071
+ ) {
1063
1072
Ok ( cmds) => cmds,
1064
1073
Err ( e) => self . fatal ( & e) ,
1065
1074
} ;
0 commit comments