Test fixes and review feedback
This commit is contained in:
parent
262527601e
commit
445faca844
@ -726,18 +726,18 @@ 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,
|
||||
test_executable,
|
||||
Command::new(&config.python)
|
||||
.arg(&lldb_script_path)
|
||||
.arg(test_executable)
|
||||
.arg(debugger_script)
|
||||
.env("PYTHONPATH",
|
||||
config.lldb_python_dir.as_ref().unwrap()))
|
||||
cmd2procres(config,
|
||||
test_executable,
|
||||
Command::new(&config.python)
|
||||
.arg(&lldb_script_path)
|
||||
.arg(test_executable)
|
||||
.arg(debugger_script)
|
||||
.env("PYTHONPATH",
|
||||
config.lldb_python_dir.as_ref().unwrap()))
|
||||
}
|
||||
}
|
||||
|
||||
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,12 +1828,12 @@ fn run_rustdoc_test(config: &Config, props: &TestProps, testfile: &Path) {
|
||||
}
|
||||
let root = find_rust_src_root(config).unwrap();
|
||||
|
||||
let res = cmd2proces(config,
|
||||
testfile,
|
||||
Command::new(&config.python)
|
||||
.arg(root.join("src/etc/htmldocck.py"))
|
||||
.arg(out_dir)
|
||||
.arg(testfile));
|
||||
let res = cmd2procres(config,
|
||||
testfile,
|
||||
Command::new(&config.python)
|
||||
.arg(root.join("src/etc/htmldocck.py"))
|
||||
.arg(out_dir)
|
||||
.arg(testfile));
|
||||
if !res.status.success() {
|
||||
fatal_proc_rec("htmldocck failed!", &res);
|
||||
}
|
||||
|
@ -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(),
|
||||
};
|
||||
|
||||
|
@ -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();
|
||||
|
@ -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);
|
||||
/// ```
|
||||
|
@ -9,6 +9,7 @@
|
||||
// except according to those terms.
|
||||
|
||||
// aux-build:rustdoc-default-impl.rs
|
||||
// ignore-android
|
||||
|
||||
extern crate rustdoc_default_impl as foo;
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
@ -9,6 +9,7 @@
|
||||
// except according to those terms.
|
||||
|
||||
// aux-build:rustdoc-extern-method.rs
|
||||
// ignore-android
|
||||
|
||||
#![feature(unboxed_closures)]
|
||||
|
||||
|
@ -9,6 +9,7 @@
|
||||
// except according to those terms.
|
||||
|
||||
// aux-build:rustdoc-ffi.rs
|
||||
// ignore-android
|
||||
|
||||
extern crate rustdoc_ffi as lib;
|
||||
|
||||
|
@ -9,6 +9,7 @@
|
||||
// except according to those terms.
|
||||
|
||||
// aux-build:inline-default-methods.rs
|
||||
// ignore-android
|
||||
|
||||
extern crate inline_default_methods;
|
||||
|
||||
|
@ -9,6 +9,7 @@
|
||||
// except according to those terms.
|
||||
|
||||
// aux-build:issue-13698.rs
|
||||
// ignore-android
|
||||
|
||||
extern crate issue_13698;
|
||||
|
||||
|
@ -9,6 +9,7 @@
|
||||
// except according to those terms.
|
||||
|
||||
// aux-build:issue-15318.rs
|
||||
// ignore-android
|
||||
|
||||
extern crate issue_15318;
|
||||
|
||||
|
@ -9,6 +9,7 @@
|
||||
// except according to those terms.
|
||||
|
||||
// aux-build:issue-15318.rs
|
||||
// ignore-android
|
||||
|
||||
#![feature(no_std)]
|
||||
#![no_std]
|
||||
|
@ -9,6 +9,7 @@
|
||||
// except according to those terms.
|
||||
|
||||
// aux-build:issue-17476.rs
|
||||
// ignore-android
|
||||
|
||||
extern crate issue_17476;
|
||||
|
||||
|
@ -9,6 +9,7 @@
|
||||
// except according to those terms.
|
||||
|
||||
// aux-build:issue-20646.rs
|
||||
// ignore-android
|
||||
|
||||
#![feature(associated_types)]
|
||||
|
||||
|
@ -9,6 +9,7 @@
|
||||
// except according to those terms.
|
||||
|
||||
// aux-build:issue-20727.rs
|
||||
// ignore-android
|
||||
|
||||
extern crate issue_20727;
|
||||
|
||||
|
@ -9,6 +9,7 @@
|
||||
// except according to those terms.
|
||||
|
||||
// aux-build:issue-20727.rs
|
||||
// ignore-android
|
||||
|
||||
extern crate issue_20727;
|
||||
|
||||
|
@ -9,6 +9,7 @@
|
||||
// except according to those terms.
|
||||
|
||||
// aux-build:issue-20727.rs
|
||||
// ignore-android
|
||||
|
||||
extern crate issue_20727;
|
||||
|
||||
|
@ -9,6 +9,7 @@
|
||||
// except according to those terms.
|
||||
|
||||
// aux-build:issue-20727.rs
|
||||
// ignore-android
|
||||
|
||||
extern crate issue_20727;
|
||||
|
||||
|
@ -9,6 +9,7 @@
|
||||
// except according to those terms.
|
||||
|
||||
// aux-build:issue-21092.rs
|
||||
// ignore-android
|
||||
|
||||
extern crate issue_21092;
|
||||
|
||||
|
@ -9,6 +9,7 @@
|
||||
// except according to those terms.
|
||||
|
||||
// aux-build:issue-21801.rs
|
||||
// ignore-android
|
||||
|
||||
extern crate issue_21801;
|
||||
|
||||
|
@ -9,6 +9,7 @@
|
||||
// except according to those terms.
|
||||
|
||||
// aux-build:issue-22025.rs
|
||||
// ignore-android
|
||||
|
||||
extern crate issue_22025;
|
||||
|
||||
|
@ -10,6 +10,7 @@
|
||||
|
||||
// aux-build:issue-23207-1.rs
|
||||
// aux-build:issue-23207-2.rs
|
||||
// ignore-android
|
||||
|
||||
extern crate issue_23207_2;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user