From 44b59be0f2ad38c39b67a6c8ebfe826c4c30cbd9 Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Fri, 20 Jan 2017 23:24:20 +0100 Subject: Move test from bootstrap to compiletest --- src/test/rustdoc-test/test.rs | 14 -------------- src/test/rustdoc/test_option_check/test.rs | 27 +++++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 14 deletions(-) delete mode 100644 src/test/rustdoc-test/test.rs create mode 100644 src/test/rustdoc/test_option_check/test.rs (limited to 'src/test') diff --git a/src/test/rustdoc-test/test.rs b/src/test/rustdoc-test/test.rs deleted file mode 100644 index 96a4a35282b..00000000000 --- a/src/test/rustdoc-test/test.rs +++ /dev/null @@ -1,14 +0,0 @@ -/// This is a Foo; -/// -/// ``` -/// println!("baaaaaar"); -/// ``` -#[unstable] -pub struct Foo; - -/// This is a Bar; -/// -/// ``` -/// println!("fooooo"); -/// ``` -pub struct Bar; diff --git a/src/test/rustdoc/test_option_check/test.rs b/src/test/rustdoc/test_option_check/test.rs new file mode 100644 index 00000000000..772d258bc80 --- /dev/null +++ b/src/test/rustdoc/test_option_check/test.rs @@ -0,0 +1,27 @@ +// Copyright 2017 The Rust Project Developers. See the COPYRIGHT +// file at the top-level directory of this distribution and at +// http://rust-lang.org/COPYRIGHT. +// +// Licensed under the Apache License, Version 2.0 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + +// compile-flags:--test +// check-stdout + +/// This is a Foo; +/// +/// ``` +/// println!("baaaaaar"); +/// ``` +#[unstable] +pub struct Foo; + +/// This is a Bar; +/// +/// ``` +/// println!("fooooo"); +/// ``` +pub struct Bar; -- cgit 1.4.1-3-g733a5