From 7f04b8ff07ba0c27c2aef957d7aa3ed4404fc877 Mon Sep 17 00:00:00 2001 From: Tamir Duberstein Date: Sat, 13 Jun 2015 12:53:07 -0400 Subject: [PATCH] compiletest: remove JIT --- src/compiletest/common.rs | 3 --- src/compiletest/compiletest.rs | 3 --- src/compiletest/runtest.rs | 40 ++++++++++------------------------ 3 files changed, 12 insertions(+), 34 deletions(-) diff --git a/src/compiletest/common.rs b/src/compiletest/common.rs index 3f34c89d18f..eb6c29eefbe 100644 --- a/src/compiletest/common.rs +++ b/src/compiletest/common.rs @@ -124,9 +124,6 @@ pub struct Config { // Flags to pass to the compiler when building for the target pub target_rustcflags: Option, - // Run tests using the JIT - pub jit: bool, - // Target system to be tested pub target: String, diff --git a/src/compiletest/compiletest.rs b/src/compiletest/compiletest.rs index 9d575675cc8..1471e30baa6 100644 --- a/src/compiletest/compiletest.rs +++ b/src/compiletest/compiletest.rs @@ -79,7 +79,6 @@ pub fn parse_config(args: Vec ) -> Config { optopt("", "target-rustcflags", "flags to pass to rustc for target", "FLAGS"), optflag("", "verbose", "run tests verbosely, showing all output"), optopt("", "logfile", "file to log test execution to", "FILE"), - optflag("", "jit", "run tests under the JIT"), optopt("", "target", "the target to build for", "TARGET"), optopt("", "host", "the host to build for", "HOST"), optopt("", "gdb-version", "the version of GDB used", "VERSION STRING"), @@ -146,7 +145,6 @@ pub fn parse_config(args: Vec ) -> Config { runtool: matches.opt_str("runtool"), host_rustcflags: matches.opt_str("host-rustcflags"), target_rustcflags: matches.opt_str("target-rustcflags"), - jit: matches.opt_present("jit"), target: opt_str2(matches.opt_str("target")), host: opt_str2(matches.opt_str("host")), gdb_version: extract_gdb_version(matches.opt_str("gdb-version")), @@ -186,7 +184,6 @@ pub fn log_config(config: &Config) { opt_str(&config.host_rustcflags))); logv(c, format!("target-rustcflags: {}", opt_str(&config.target_rustcflags))); - logv(c, format!("jit: {}", config.jit)); logv(c, format!("target: {}", config.target)); logv(c, format!("host: {}", config.host)); logv(c, format!("android-cross-path: {:?}", diff --git a/src/compiletest/runtest.rs b/src/compiletest/runtest.rs index 8b06c3bf18c..5a076b8437e 100644 --- a/src/compiletest/runtest.rs +++ b/src/compiletest/runtest.rs @@ -98,17 +98,13 @@ fn run_cfail_test(config: &Config, props: &TestProps, testfile: &Path) { } fn run_rfail_test(config: &Config, props: &TestProps, testfile: &Path) { - let proc_res = if !config.jit { - let proc_res = compile_test(config, props, testfile); + let proc_res = compile_test(config, props, testfile); - if !proc_res.status.success() { - fatal_proc_rec("compilation failed!", &proc_res); - } + if !proc_res.status.success() { + fatal_proc_rec("compilation failed!", &proc_res); + } - exec_compiled_test(config, props, testfile) - } else { - jit_test(config, props, testfile) - }; + let proc_res = exec_compiled_test(config, props, testfile); // The value our Makefile configures valgrind to return on failure const VALGRIND_ERR: i32 = 100; @@ -133,24 +129,16 @@ fn check_correct_failure_status(proc_res: &ProcRes) { } fn run_rpass_test(config: &Config, props: &TestProps, testfile: &Path) { - if !config.jit { - let mut proc_res = compile_test(config, props, testfile); + let proc_res = compile_test(config, props, testfile); - if !proc_res.status.success() { - fatal_proc_rec("compilation failed!", &proc_res); - } + if !proc_res.status.success() { + fatal_proc_rec("compilation failed!", &proc_res); + } - proc_res = exec_compiled_test(config, props, testfile); + let proc_res = exec_compiled_test(config, props, testfile); - if !proc_res.status.success() { - fatal_proc_rec("test run failed!", &proc_res); - } - } else { - let proc_res = jit_test(config, props, testfile); - - if !proc_res.status.success() { - fatal_proc_rec("jit failed!", &proc_res); - } + if !proc_res.status.success() { + fatal_proc_rec("test run failed!", &proc_res); } } @@ -1141,10 +1129,6 @@ fn compile_test(config: &Config, props: &TestProps, compile_test_(config, props, testfile, &[]) } -fn jit_test(config: &Config, props: &TestProps, testfile: &Path) -> ProcRes { - compile_test_(config, props, testfile, &["--jit".to_string()]) -} - fn compile_test_(config: &Config, props: &TestProps, testfile: &Path, extra_args: &[String]) -> ProcRes { let aux_dir = aux_output_dir_name(config, testfile);