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 {
// Prepare the lldb_batchmode which executes the debugger script
let lldb_script_path = rust_src_root.join("src/etc/lldb_batchmode.py");
cmd2proces(config,
cmd2procres(config,
test_executable,
Command::new(&config.python)
.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 {
let (status, out, err) = match cmd.output() {
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 res = cmd2proces(config,
let res = cmd2procres(config,
testfile,
Command::new(&config.python)
.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;
let mut opts = TestOptions {
no_crate_inject: true,
no_crate_inject: false,
attrs: Vec::new(),
};

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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