Test fixes and review feedback

This commit is contained in:
Alex Crichton 2015-04-07 20:11:59 -07:00
parent 262527601e
commit 445faca844
22 changed files with 64 additions and 48 deletions

View File

@ -726,7 +726,7 @@ fn run_debuginfo_lldb_test(config: &Config, props: &TestProps, testfile: &Path)
-> ProcRes { -> ProcRes {
// Prepare the lldb_batchmode which executes the debugger script // Prepare the lldb_batchmode which executes the debugger script
let lldb_script_path = rust_src_root.join("src/etc/lldb_batchmode.py"); let lldb_script_path = rust_src_root.join("src/etc/lldb_batchmode.py");
cmd2proces(config, cmd2procres(config,
test_executable, test_executable,
Command::new(&config.python) Command::new(&config.python)
.arg(&lldb_script_path) .arg(&lldb_script_path)
@ -737,7 +737,7 @@ fn run_debuginfo_lldb_test(config: &Config, props: &TestProps, testfile: &Path)
} }
} }
fn cmd2proces(config: &Config, test_executable: &Path, cmd: &mut Command) fn cmd2procres(config: &Config, test_executable: &Path, cmd: &mut Command)
-> ProcRes { -> ProcRes {
let (status, out, err) = match cmd.output() { let (status, out, err) = match cmd.output() {
Ok(Output { status, stdout, stderr }) => { Ok(Output { status, stdout, stderr }) => {
@ -1828,7 +1828,7 @@ fn run_rustdoc_test(config: &Config, props: &TestProps, testfile: &Path) {
} }
let root = find_rust_src_root(config).unwrap(); let root = find_rust_src_root(config).unwrap();
let res = cmd2proces(config, let res = cmd2procres(config,
testfile, testfile,
Command::new(&config.python) Command::new(&config.python)
.arg(root.join("src/etc/htmldocck.py")) .arg(root.join("src/etc/htmldocck.py"))

View File

@ -124,7 +124,7 @@ fn scrape_test_config(krate: &::syntax::ast::Crate) -> TestOptions {
use syntax::print::pprust; use syntax::print::pprust;
let mut opts = TestOptions { let mut opts = TestOptions {
no_crate_inject: true, no_crate_inject: false,
attrs: Vec::new(), attrs: Vec::new(),
}; };

View File

@ -48,7 +48,7 @@
//! //!
//! ## Examples //! ## Examples
//! //!
//! ```rust //! ```rust,ignore
//! # #![feature(old_path, old_io)] //! # #![feature(old_path, old_io)]
//! use std::old_io::fs::PathExtensions; //! use std::old_io::fs::PathExtensions;
//! use std::old_path::{Path, GenericPath}; //! use std::old_path::{Path, GenericPath};
@ -190,7 +190,7 @@ pub trait GenericPath: Clone + GenericPathUnsafe {
/// ///
/// # Examples /// # Examples
/// ///
/// ``` /// ```ignore
/// # #![feature(old_path)] /// # #![feature(old_path)]
/// use std::old_path::{Path, GenericPath}; /// use std::old_path::{Path, GenericPath};
/// # foo(); /// # foo();
@ -209,7 +209,7 @@ pub trait GenericPath: Clone + GenericPathUnsafe {
/// ///
/// # Examples /// # Examples
/// ///
/// ``` /// ```ignore
/// # #![feature(old_path)] /// # #![feature(old_path)]
/// use std::old_path::{Path, GenericPath}; /// use std::old_path::{Path, GenericPath};
/// # foo(); /// # foo();
@ -225,7 +225,7 @@ pub trait GenericPath: Clone + GenericPathUnsafe {
/// ///
/// # Examples /// # Examples
/// ///
/// ``` /// ```ignore
/// # #![feature(old_path)] /// # #![feature(old_path)]
/// use std::old_path::{Path, GenericPath}; /// use std::old_path::{Path, GenericPath};
/// # foo(); /// # foo();
@ -242,7 +242,7 @@ pub trait GenericPath: Clone + GenericPathUnsafe {
/// ///
/// # Examples /// # Examples
/// ///
/// ``` /// ```ignore
/// # #![feature(old_path)] /// # #![feature(old_path)]
/// use std::old_path::{Path, GenericPath}; /// use std::old_path::{Path, GenericPath};
/// # foo(); /// # foo();
@ -262,7 +262,7 @@ pub trait GenericPath: Clone + GenericPathUnsafe {
/// ///
/// # Examples /// # Examples
/// ///
/// ``` /// ```ignore
/// # #![feature(old_path)] /// # #![feature(old_path)]
/// use std::old_path::{Path, GenericPath}; /// use std::old_path::{Path, GenericPath};
/// # foo(); /// # foo();
@ -281,7 +281,7 @@ pub trait GenericPath: Clone + GenericPathUnsafe {
/// ///
/// # Examples /// # Examples
/// ///
/// ``` /// ```ignore
/// # #![feature(old_path)] /// # #![feature(old_path)]
/// use std::old_path::{Path, GenericPath}; /// use std::old_path::{Path, GenericPath};
/// # foo(); /// # foo();
@ -298,7 +298,7 @@ pub trait GenericPath: Clone + GenericPathUnsafe {
/// ///
/// # Examples /// # Examples
/// ///
/// ``` /// ```ignore
/// # #![feature(old_path)] /// # #![feature(old_path)]
/// use std::old_path::{Path, GenericPath}; /// use std::old_path::{Path, GenericPath};
/// # foo(); /// # foo();
@ -319,7 +319,7 @@ pub trait GenericPath: Clone + GenericPathUnsafe {
/// ///
/// # Examples /// # Examples
/// ///
/// ``` /// ```ignore
/// # #![feature(old_path)] /// # #![feature(old_path)]
/// use std::old_path::{Path, GenericPath}; /// use std::old_path::{Path, GenericPath};
/// # foo(); /// # foo();
@ -336,7 +336,7 @@ pub trait GenericPath: Clone + GenericPathUnsafe {
/// ///
/// # Examples /// # Examples
/// ///
/// ``` /// ```ignore
/// # #![feature(old_path)] /// # #![feature(old_path)]
/// use std::old_path::{Path, GenericPath}; /// use std::old_path::{Path, GenericPath};
/// # foo(); /// # foo();
@ -357,7 +357,7 @@ pub trait GenericPath: Clone + GenericPathUnsafe {
/// ///
/// # Examples /// # Examples
/// ///
/// ``` /// ```ignore
/// # #![feature(old_path)] /// # #![feature(old_path)]
/// use std::old_path::{Path, GenericPath}; /// use std::old_path::{Path, GenericPath};
/// # foo(); /// # foo();
@ -386,7 +386,7 @@ pub trait GenericPath: Clone + GenericPathUnsafe {
/// ///
/// # Examples /// # Examples
/// ///
/// ``` /// ```ignore
/// # #![feature(old_path)] /// # #![feature(old_path)]
/// use std::old_path::{Path, GenericPath}; /// use std::old_path::{Path, GenericPath};
/// # foo(); /// # foo();
@ -408,7 +408,7 @@ pub trait GenericPath: Clone + GenericPathUnsafe {
/// ///
/// # Examples /// # Examples
/// ///
/// ``` /// ```ignore
/// # #![feature(old_path)] /// # #![feature(old_path)]
/// use std::old_path::{Path, GenericPath}; /// use std::old_path::{Path, GenericPath};
/// # foo(); /// # foo();
@ -437,7 +437,7 @@ pub trait GenericPath: Clone + GenericPathUnsafe {
/// ///
/// # Examples /// # Examples
/// ///
/// ``` /// ```ignore
/// # #![feature(old_path)] /// # #![feature(old_path)]
/// use std::old_path::{Path, GenericPath}; /// use std::old_path::{Path, GenericPath};
/// # foo(); /// # foo();
@ -457,7 +457,7 @@ pub trait GenericPath: Clone + GenericPathUnsafe {
/// ///
/// # Examples /// # Examples
/// ///
/// ``` /// ```ignore
/// # #![feature(old_path)] /// # #![feature(old_path)]
/// use std::old_path::{Path, GenericPath}; /// use std::old_path::{Path, GenericPath};
/// # foo(); /// # foo();
@ -485,7 +485,7 @@ pub trait GenericPath: Clone + GenericPathUnsafe {
/// ///
/// # Examples /// # Examples
/// ///
/// ``` /// ```ignore
/// # #![feature(old_path)] /// # #![feature(old_path)]
/// use std::old_path::{Path, GenericPath}; /// use std::old_path::{Path, GenericPath};
/// # foo(); /// # foo();
@ -537,7 +537,7 @@ pub trait GenericPath: Clone + GenericPathUnsafe {
/// ///
/// # Examples /// # Examples
/// ///
/// ``` /// ```ignore
/// # #![feature(old_path)] /// # #![feature(old_path)]
/// use std::old_path::{Path, GenericPath}; /// use std::old_path::{Path, GenericPath};
/// # foo(); /// # foo();
@ -564,7 +564,7 @@ pub trait GenericPath: Clone + GenericPathUnsafe {
/// ///
/// # Examples /// # Examples
/// ///
/// ``` /// ```ignore
/// # #![feature(old_path)] /// # #![feature(old_path)]
/// use std::old_path::{Path, GenericPath}; /// use std::old_path::{Path, GenericPath};
/// # foo(); /// # foo();
@ -590,7 +590,7 @@ pub trait GenericPath: Clone + GenericPathUnsafe {
/// ///
/// # Examples /// # Examples
/// ///
/// ``` /// ```ignore
/// # #![feature(old_path)] /// # #![feature(old_path)]
/// use std::old_path::{Path, GenericPath}; /// use std::old_path::{Path, GenericPath};
/// # foo(); /// # foo();
@ -611,7 +611,7 @@ pub trait GenericPath: Clone + GenericPathUnsafe {
/// ///
/// # Examples /// # Examples
/// ///
/// ``` /// ```ignore
/// # #![feature(old_path)] /// # #![feature(old_path)]
/// use std::old_path::{Path, GenericPath}; /// use std::old_path::{Path, GenericPath};
/// # foo(); /// # foo();
@ -628,7 +628,7 @@ pub trait GenericPath: Clone + GenericPathUnsafe {
/// ///
/// # Examples /// # Examples
/// ///
/// ``` /// ```ignore
/// # #![feature(old_path)] /// # #![feature(old_path)]
/// use std::old_path::{Path, GenericPath}; /// use std::old_path::{Path, GenericPath};
/// # foo(); /// # foo();
@ -654,7 +654,7 @@ pub trait GenericPath: Clone + GenericPathUnsafe {
/// ///
/// # Examples /// # Examples
/// ///
/// ``` /// ```ignore
/// # #![feature(old_path)] /// # #![feature(old_path)]
/// use std::old_path::{Path, GenericPath}; /// use std::old_path::{Path, GenericPath};
/// # foo(); /// # foo();
@ -685,7 +685,7 @@ pub trait GenericPath: Clone + GenericPathUnsafe {
/// ///
/// # Examples /// # Examples
/// ///
/// ``` /// ```ignore
/// # #![feature(old_path)] /// # #![feature(old_path)]
/// use std::old_path::{Path, GenericPath}; /// use std::old_path::{Path, GenericPath};
/// # foo(); /// # foo();
@ -704,7 +704,7 @@ pub trait GenericPath: Clone + GenericPathUnsafe {
/// ///
/// # Examples /// # Examples
/// ///
/// ``` /// ```ignore
/// # #![feature(old_path)] /// # #![feature(old_path)]
/// use std::old_path::{Path, GenericPath}; /// use std::old_path::{Path, GenericPath};
/// # foo(); /// # foo();
@ -731,7 +731,7 @@ pub trait GenericPath: Clone + GenericPathUnsafe {
/// ///
/// # Examples /// # Examples
/// ///
/// ``` /// ```ignore
/// # #![feature(old_path)] /// # #![feature(old_path)]
/// use std::old_path::{Path, GenericPath}; /// use std::old_path::{Path, GenericPath};
/// # foo(); /// # foo();
@ -755,7 +755,7 @@ pub trait GenericPath: Clone + GenericPathUnsafe {
/// ///
/// # Examples /// # Examples
/// ///
/// ``` /// ```ignore
/// # #![feature(old_path)] /// # #![feature(old_path)]
/// use std::old_path::{Path, GenericPath}; /// use std::old_path::{Path, GenericPath};
/// # foo(); /// # foo();
@ -774,7 +774,7 @@ pub trait GenericPath: Clone + GenericPathUnsafe {
/// ///
/// # Examples /// # Examples
/// ///
/// ``` /// ```ignore
/// # #![feature(old_path)] /// # #![feature(old_path)]
/// use std::old_path::{Path, GenericPath}; /// use std::old_path::{Path, GenericPath};
/// # foo(); /// # foo();
@ -794,7 +794,7 @@ pub trait GenericPath: Clone + GenericPathUnsafe {
/// ///
/// # Examples /// # Examples
/// ///
/// ``` /// ```ignore
/// # #![feature(old_path)] /// # #![feature(old_path)]
/// use std::old_path::{Path, GenericPath}; /// use std::old_path::{Path, GenericPath};
/// # foo(); /// # foo();
@ -815,7 +815,7 @@ pub trait GenericPath: Clone + GenericPathUnsafe {
/// ///
/// # Examples /// # Examples
/// ///
/// ``` /// ```ignore
/// # #![feature(old_path)] /// # #![feature(old_path)]
/// use std::old_path::{Path, GenericPath}; /// use std::old_path::{Path, GenericPath};
/// # foo(); /// # foo();
@ -833,7 +833,7 @@ pub trait GenericPath: Clone + GenericPathUnsafe {
/// ///
/// # Examples /// # Examples
/// ///
/// ``` /// ```ignore
/// # #![feature(old_path)] /// # #![feature(old_path)]
/// use std::old_path::{Path, GenericPath}; /// use std::old_path::{Path, GenericPath};
/// # foo(); /// # foo();

View File

@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![crate_name="foo"]
/// ```rust /// ```rust
/// assert_eq!(foo::foo(), 1); /// assert_eq!(foo::foo(), 1);
/// ``` /// ```

View File

@ -9,6 +9,7 @@
// except according to those terms. // except according to those terms.
// aux-build:rustdoc-default-impl.rs // aux-build:rustdoc-default-impl.rs
// ignore-android
extern crate rustdoc_default_impl as foo; extern crate rustdoc_default_impl as foo;

View File

@ -9,6 +9,7 @@
// except according to those terms. // except according to those terms.
// aux-build:rustdoc-extern-default-method.rs // aux-build:rustdoc-extern-default-method.rs
// ignore-android
extern crate rustdoc_extern_default_method as ext; extern crate rustdoc_extern_default_method as ext;

View File

@ -9,6 +9,7 @@
// except according to those terms. // except according to those terms.
// aux-build:rustdoc-extern-method.rs // aux-build:rustdoc-extern-method.rs
// ignore-android
#![feature(unboxed_closures)] #![feature(unboxed_closures)]

View File

@ -9,6 +9,7 @@
// except according to those terms. // except according to those terms.
// aux-build:rustdoc-ffi.rs // aux-build:rustdoc-ffi.rs
// ignore-android
extern crate rustdoc_ffi as lib; extern crate rustdoc_ffi as lib;

View File

@ -9,6 +9,7 @@
// except according to those terms. // except according to those terms.
// aux-build:inline-default-methods.rs // aux-build:inline-default-methods.rs
// ignore-android
extern crate inline_default_methods; extern crate inline_default_methods;

View File

@ -9,6 +9,7 @@
// except according to those terms. // except according to those terms.
// aux-build:issue-13698.rs // aux-build:issue-13698.rs
// ignore-android
extern crate issue_13698; extern crate issue_13698;

View File

@ -9,6 +9,7 @@
// except according to those terms. // except according to those terms.
// aux-build:issue-15318.rs // aux-build:issue-15318.rs
// ignore-android
extern crate issue_15318; extern crate issue_15318;

View File

@ -9,6 +9,7 @@
// except according to those terms. // except according to those terms.
// aux-build:issue-15318.rs // aux-build:issue-15318.rs
// ignore-android
#![feature(no_std)] #![feature(no_std)]
#![no_std] #![no_std]

View File

@ -9,6 +9,7 @@
// except according to those terms. // except according to those terms.
// aux-build:issue-17476.rs // aux-build:issue-17476.rs
// ignore-android
extern crate issue_17476; extern crate issue_17476;

View File

@ -9,6 +9,7 @@
// except according to those terms. // except according to those terms.
// aux-build:issue-20646.rs // aux-build:issue-20646.rs
// ignore-android
#![feature(associated_types)] #![feature(associated_types)]

View File

@ -9,6 +9,7 @@
// except according to those terms. // except according to those terms.
// aux-build:issue-20727.rs // aux-build:issue-20727.rs
// ignore-android
extern crate issue_20727; extern crate issue_20727;

View File

@ -9,6 +9,7 @@
// except according to those terms. // except according to those terms.
// aux-build:issue-20727.rs // aux-build:issue-20727.rs
// ignore-android
extern crate issue_20727; extern crate issue_20727;

View File

@ -9,6 +9,7 @@
// except according to those terms. // except according to those terms.
// aux-build:issue-20727.rs // aux-build:issue-20727.rs
// ignore-android
extern crate issue_20727; extern crate issue_20727;

View File

@ -9,6 +9,7 @@
// except according to those terms. // except according to those terms.
// aux-build:issue-20727.rs // aux-build:issue-20727.rs
// ignore-android
extern crate issue_20727; extern crate issue_20727;

View File

@ -9,6 +9,7 @@
// except according to those terms. // except according to those terms.
// aux-build:issue-21092.rs // aux-build:issue-21092.rs
// ignore-android
extern crate issue_21092; extern crate issue_21092;

View File

@ -9,6 +9,7 @@
// except according to those terms. // except according to those terms.
// aux-build:issue-21801.rs // aux-build:issue-21801.rs
// ignore-android
extern crate issue_21801; extern crate issue_21801;

View File

@ -9,6 +9,7 @@
// except according to those terms. // except according to those terms.
// aux-build:issue-22025.rs // aux-build:issue-22025.rs
// ignore-android
extern crate issue_22025; extern crate issue_22025;

View File

@ -10,6 +10,7 @@
// aux-build:issue-23207-1.rs // aux-build:issue-23207-1.rs
// aux-build:issue-23207-2.rs // aux-build:issue-23207-2.rs
// ignore-android
extern crate issue_23207_2; extern crate issue_23207_2;