@@ -98,17 +98,13 @@ fn run_cfail_test(config: &Config, props: &TestProps, testfile: &Path) {
98
98
}
99
99
100
100
fn run_rfail_test ( config : & Config , props : & TestProps , testfile : & Path ) {
101
- let proc_res = if !config. jit {
102
- let proc_res = compile_test ( config, props, testfile) ;
101
+ let proc_res = compile_test ( config, props, testfile) ;
103
102
104
- if !proc_res. status . success ( ) {
105
- fatal_proc_rec ( "compilation failed!" , & proc_res) ;
106
- }
103
+ if !proc_res. status . success ( ) {
104
+ fatal_proc_rec ( "compilation failed!" , & proc_res) ;
105
+ }
107
106
108
- exec_compiled_test ( config, props, testfile)
109
- } else {
110
- jit_test ( config, props, testfile)
111
- } ;
107
+ let proc_res = exec_compiled_test ( config, props, testfile) ;
112
108
113
109
// The value our Makefile configures valgrind to return on failure
114
110
const VALGRIND_ERR : i32 = 100 ;
@@ -133,24 +129,16 @@ fn check_correct_failure_status(proc_res: &ProcRes) {
133
129
}
134
130
135
131
fn run_rpass_test ( config : & Config , props : & TestProps , testfile : & Path ) {
136
- if !config. jit {
137
- let mut proc_res = compile_test ( config, props, testfile) ;
138
-
139
- if !proc_res. status . success ( ) {
140
- fatal_proc_rec ( "compilation failed!" , & proc_res) ;
141
- }
132
+ let proc_res = compile_test ( config, props, testfile) ;
142
133
143
- proc_res = exec_compiled_test ( config, props, testfile) ;
134
+ if !proc_res. status . success ( ) {
135
+ fatal_proc_rec ( "compilation failed!" , & proc_res) ;
136
+ }
144
137
145
- if !proc_res. status . success ( ) {
146
- fatal_proc_rec ( "test run failed!" , & proc_res) ;
147
- }
148
- } else {
149
- let proc_res = jit_test ( config, props, testfile) ;
138
+ let proc_res = exec_compiled_test ( config, props, testfile) ;
150
139
151
- if !proc_res. status . success ( ) {
152
- fatal_proc_rec ( "jit failed!" , & proc_res) ;
153
- }
140
+ if !proc_res. status . success ( ) {
141
+ fatal_proc_rec ( "test run failed!" , & proc_res) ;
154
142
}
155
143
}
156
144
@@ -1141,10 +1129,6 @@ fn compile_test(config: &Config, props: &TestProps,
1141
1129
compile_test_ ( config, props, testfile, & [ ] )
1142
1130
}
1143
1131
1144
- fn jit_test ( config : & Config , props : & TestProps , testfile : & Path ) -> ProcRes {
1145
- compile_test_ ( config, props, testfile, & [ "--jit" . to_string ( ) ] )
1146
- }
1147
-
1148
1132
fn compile_test_ ( config : & Config , props : & TestProps ,
1149
1133
testfile : & Path , extra_args : & [ String ] ) -> ProcRes {
1150
1134
let aux_dir = aux_output_dir_name ( config, testfile) ;
0 commit comments