File tree 1 file changed +4
-2
lines changed
src/tools/compiletest/src/runtest
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -145,12 +145,13 @@ impl TestCx<'_> {
145
145
self . fatal_proc_rec ( "test run succeeded!" , & proc_res) ;
146
146
}
147
147
148
+ let output_to_check = self . get_output ( & proc_res) ;
148
149
if !self . props . error_patterns . is_empty ( ) || !self . props . regex_error_patterns . is_empty ( )
149
150
{
150
151
// "// error-pattern" comments
151
- let output_to_check = self . get_output ( & proc_res) ;
152
152
self . check_all_error_patterns ( & output_to_check, & proc_res, pm) ;
153
153
}
154
+ self . check_forbid_output ( & output_to_check, & proc_res)
154
155
}
155
156
156
157
debug ! (
@@ -181,11 +182,12 @@ impl TestCx<'_> {
181
182
) ;
182
183
self . fatal ( & msg) ;
183
184
}
185
+ let output_to_check = self . get_output ( & proc_res) ;
184
186
if check_patterns {
185
187
// "// error-pattern" comments
186
- let output_to_check = self . get_output ( & proc_res) ;
187
188
self . check_all_error_patterns ( & output_to_check, & proc_res, pm) ;
188
189
}
190
+ self . check_forbid_output ( & output_to_check, & proc_res) ;
189
191
190
192
if self . props . run_rustfix && self . config . compare_mode . is_none ( ) {
191
193
// And finally, compile the fixed code and make sure it both
You can’t perform that action at this time.
0 commit comments