|
1 | 1 | #![crate_name = "compiletest"]
|
2 |
| -// Needed by the libtest-based test executor. |
3 |
| -#![feature(test)] |
4 | 2 | // Needed by the "new" test executor that does not depend on libtest.
|
| 3 | +// FIXME(Zalathar): We should be able to get rid of `internal_output_capture`, |
| 4 | +// by having `runtest` manually capture all of its println-like output instead. |
| 5 | +// That would result in compiletest being written entirely in stable Rust! |
5 | 6 | #![feature(internal_output_capture)]
|
6 | 7 |
|
7 |
| -extern crate test; |
8 |
| - |
9 | 8 | #[cfg(test)]
|
10 | 9 | mod tests;
|
11 | 10 |
|
@@ -448,8 +447,6 @@ pub fn parse_config(args: Vec<String>) -> Config {
|
448 | 447 | diff_command: matches.opt_str("compiletest-diff-tool"),
|
449 | 448 |
|
450 | 449 | minicore_path: opt_path(matches, "minicore-path"),
|
451 |
| - |
452 |
| - no_new_executor: matches.opt_present("no-new-executor"), |
453 | 450 | }
|
454 | 451 | }
|
455 | 452 |
|
@@ -576,12 +573,10 @@ pub fn run_tests(config: Arc<Config>) {
|
576 | 573 | // Delegate to the executor to filter and run the big list of test structures
|
577 | 574 | // created during test discovery. When the executor decides to run a test,
|
578 | 575 | // it will return control to the rest of compiletest by calling `runtest::run`.
|
579 |
| - let res = if !config.no_new_executor { |
580 |
| - Ok(executor::run_tests(&config, tests)) |
581 |
| - } else { |
582 |
| - // FIXME(Zalathar): Eventually remove the libtest executor entirely. |
583 |
| - crate::executor::libtest::execute_tests(&config, tests) |
584 |
| - }; |
| 576 | + // FIXME(Zalathar): Once we're confident that we won't need to revert the |
| 577 | + // removal of the libtest-based executor, remove this Result and other |
| 578 | + // remnants of the old executor. |
| 579 | + let res: io::Result<bool> = Ok(executor::run_tests(&config, tests)); |
585 | 580 |
|
586 | 581 | // Check the outcome reported by libtest.
|
587 | 582 | match res {
|
|
0 commit comments