mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Resolves #7031 - Fix warnings in ./mach test-ref
This commit is contained in:
parent
9e52dd8cee
commit
ec9502b0de
2 changed files with 5 additions and 5 deletions
6
tests/reftest.rs
vendored
6
tests/reftest.rs
vendored
|
@ -8,7 +8,6 @@
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
#![feature(append)]
|
#![feature(append)]
|
||||||
#![feature(exit_status)]
|
|
||||||
#![feature(fs_walk)]
|
#![feature(fs_walk)]
|
||||||
#![feature(path_ext)]
|
#![feature(path_ext)]
|
||||||
#![feature(slice_patterns)]
|
#![feature(slice_patterns)]
|
||||||
|
@ -25,6 +24,7 @@ use std::ffi::OsStr;
|
||||||
use std::fs::{PathExt, File, walk_dir};
|
use std::fs::{PathExt, File, walk_dir};
|
||||||
use std::io::{self, Read, Result};
|
use std::io::{self, Read, Result};
|
||||||
use std::path::{Path, PathBuf};
|
use std::path::{Path, PathBuf};
|
||||||
|
use std::process;
|
||||||
use std::process::{Command, Stdio};
|
use std::process::{Command, Stdio};
|
||||||
use test::run_tests_console;
|
use test::run_tests_console;
|
||||||
use test::{AutoColor, DynTestName, DynTestFn, TestDesc, TestOpts, TestDescAndFn, ShouldPanic};
|
use test::{AutoColor, DynTestName, DynTestFn, TestDesc, TestOpts, TestDescAndFn, ShouldPanic};
|
||||||
|
@ -101,8 +101,8 @@ fn main() {
|
||||||
match run(test_opts,
|
match run(test_opts,
|
||||||
all_tests,
|
all_tests,
|
||||||
servo_args.iter().map(|x| x.clone()).collect()) {
|
servo_args.iter().map(|x| x.clone()).collect()) {
|
||||||
Ok(false) => env::set_exit_status(1), // tests failed
|
Ok(false) => process::exit(1), // tests failed
|
||||||
Err(_) => env::set_exit_status(2), // I/O-related failure
|
Err(_) => process::exit(2), // I/O-related failure
|
||||||
_ => (),
|
_ => (),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
#![feature(plugin, custom_derive, heap_api)]
|
#![cfg_attr(test, feature(plugin, custom_derive, heap_api))]
|
||||||
#![plugin(plugins)]
|
#![cfg_attr(test, plugin(plugins))]
|
||||||
extern crate util;
|
extern crate util;
|
||||||
extern crate libc;
|
extern crate libc;
|
||||||
extern crate euclid;
|
extern crate euclid;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue