@@ -98,17 +98,13 @@ fn run_cfail_test(config: &Config, props: &TestProps, testfile: &Path) {
9898}
9999
100100fn 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) ;
103102
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+ }
107106
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) ;
112108
113109 // The value our Makefile configures valgrind to return on failure
114110 const VALGRIND_ERR : i32 = 100 ;
@@ -133,24 +129,16 @@ fn check_correct_failure_status(proc_res: &ProcRes) {
133129}
134130
135131fn 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) ;
142133
143- proc_res = exec_compiled_test ( config, props, testfile) ;
134+ if !proc_res. status . success ( ) {
135+ fatal_proc_rec ( "compilation failed!" , & proc_res) ;
136+ }
144137
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) ;
150139
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) ;
154142 }
155143}
156144
@@ -1141,10 +1129,6 @@ fn compile_test(config: &Config, props: &TestProps,
11411129 compile_test_ ( config, props, testfile, & [ ] )
11421130}
11431131
1144- fn jit_test ( config : & Config , props : & TestProps , testfile : & Path ) -> ProcRes {
1145- compile_test_ ( config, props, testfile, & [ "--jit" . to_string ( ) ] )
1146- }
1147-
11481132fn compile_test_ ( config : & Config , props : & TestProps ,
11491133 testfile : & Path , extra_args : & [ String ] ) -> ProcRes {
11501134 let aux_dir = aux_output_dir_name ( config, testfile) ;
0 commit comments