about summary refs log tree commit diff
path: root/src/test/debuginfo
diff options
context:
space:
mode:
authorSteve Klabnik <steve@steveklabnik.com>2015-06-12 13:36:41 -0400
committerSteve Klabnik <steve@steveklabnik.com>2015-06-12 14:16:16 -0400
commitbba934f19ab26d5afc4f0be923ea699010883906 (patch)
treefdf950fec3f35810dd04cf70355b2e93067d4507 /src/test/debuginfo
parenta2f2a647633505fa83bcd9644d296ad529ebac41 (diff)
downloadrust-bba934f19ab26d5afc4f0be923ea699010883906.tar.gz
rust-bba934f19ab26d5afc4f0be923ea699010883906.zip
ignore-test cleanup
Most of these are old, but some specific messages for specific tests:

* trait-contravariant-self.rs: failed due to a soundess hole:
  https://github.com/rust-lang/rust/commit/05e3248a7974f55b64f75a2483b37ff8c001a4ff

* process-detatch: https://github.com/rust-lang/rust/commit/15966c3c1f99810ac81053769651776a67181dae
  says "this test is being ignored until signals are implemented" That's
  not happening for a long time, and when it is, we'll write tests for
  it.

* deep-vector{,2}.rs: "too big for our poor macro infrastructure", and has
  been ignored over a year.

* borrowck-nested-calls.rs's FIXME #6268 was closed in favor of
  rust-lang/rfcs#811

* issue-15167.rs works properly now
* issue-9737.rs works properly now
* match-var-hygiene.rs works properly now

Addresses a chunk of #3965
Diffstat (limited to 'src/test/debuginfo')
-rw-r--r--src/test/debuginfo/gdb-pretty-struct-and-enums.rs189
-rw-r--r--src/test/debuginfo/generic-trait-generic-static-default-method.rs52
-rw-r--r--src/test/debuginfo/issue11600.rs30
-rw-r--r--src/test/debuginfo/trait-generic-static-default-method.rs71
4 files changed, 0 insertions, 342 deletions
diff --git a/src/test/debuginfo/gdb-pretty-struct-and-enums.rs b/src/test/debuginfo/gdb-pretty-struct-and-enums.rs
deleted file mode 100644
index fbf28259949..00000000000
--- a/src/test/debuginfo/gdb-pretty-struct-and-enums.rs
+++ /dev/null
@@ -1,189 +0,0 @@
-// Copyright 2013-2014 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 <LICENSE-APACHE or
-// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
-// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
-// option. This file may not be copied, modified, or distributed
-// except according to those terms.
-
-// ignore-test also broken on nightly linux distcheck. it's just broken!
-// ignore-windows failing on win32 bot
-// ignore-freebsd: output doesn't match
-// ignore-tidy-linelength
-// ignore-lldb
-// ignore-android: FIXME(#10381)
-// compile-flags:-g
-
-// This test uses some GDB Python API features (e.g. accessing anonymous fields)
-// which are only available in newer GDB version. The following directive will
-// case the test runner to ignore this test if an older GDB version is used:
-// min-gdb-version 7.7
-
-// gdb-command: run
-
-// gdb-command: print regular_struct
-// gdb-check:$1 = RegularStruct = {the_first_field = 101, the_second_field = 102.5, the_third_field = false, the_fourth_field = "I'm so pretty, oh so pretty..."}
-
-// gdb-command: print tuple
-// gdb-check:$2 = {true, 103, "blub"}
-
-// gdb-command: print tuple_struct
-// gdb-check:$3 = TupleStruct = {-104.5, 105}
-
-// gdb-command: print empty_struct
-// gdb-check:$4 = EmptyStruct
-
-// gdb-command: print c_style_enum1
-// gdb-check:$5 = CStyleEnumVar1
-
-// gdb-command: print c_style_enum2
-// gdb-check:$6 = CStyleEnumVar2
-
-// gdb-command: print c_style_enum3
-// gdb-check:$7 = CStyleEnumVar3
-
-// gdb-command: print mixed_enum_c_style_var
-// gdb-check:$8 = MixedEnumCStyleVar
-
-// gdb-command: print mixed_enum_tuple_var
-// gdb-check:$9 = MixedEnumTupleVar = {106, 107, false}
-
-// gdb-command: print mixed_enum_struct_var
-// gdb-check:$10 = MixedEnumStructVar = {field1 = 108.5, field2 = 109}
-
-// gdb-command: print some
-// gdb-check:$11 = Some = {110}
-
-// gdb-command: print none
-// gdb-check:$12 = None
-
-// gdb-command: print some_fat
-// gdb-check:$13 = Some = {"abc"}
-
-// gdb-command: print none_fat
-// gdb-check:$14 = None
-
-// gdb-command: print nested_variant1
-// gdb-check:$15 = NestedVariant1 = {NestedStruct = {regular_struct = RegularStruct = {the_first_field = 111, the_second_field = 112.5, the_third_field = true, the_fourth_field = "NestedStructString1"}, tuple_struct = TupleStruct = {113.5, 114}, empty_struct = EmptyStruct, c_style_enum = CStyleEnumVar2, mixed_enum = MixedEnumTupleVar = {115, 116, false}}}
-
-// gdb-command: print nested_variant2
-// gdb-check:$16 = NestedVariant2 = {abc = NestedStruct = {regular_struct = RegularStruct = {the_first_field = 117, the_second_field = 118.5, the_third_field = false, the_fourth_field = "NestedStructString10"}, tuple_struct = TupleStruct = {119.5, 120}, empty_struct = EmptyStruct, c_style_enum = CStyleEnumVar3, mixed_enum = MixedEnumStructVar = {field1 = 121.5, field2 = -122}}}
-
-// gdb-command: print none_check1
-// gdb-check:$17 = None
-
-// gdb-command: print none_check2
-// gdb-check:$18 = None
-
-#![allow(dead_code, unused_variables)]
-
-use self::CStyleEnum::{CStyleEnumVar1, CStyleEnumVar2, CStyleEnumVar3};
-use self::MixedEnum::{MixedEnumCStyleVar, MixedEnumTupleVar, MixedEnumStructVar};
-use self::NestedEnum::{NestedVariant1, NestedVariant2};
-
-struct RegularStruct {
-    the_first_field: isize,
-    the_second_field: f64,
-    the_third_field: bool,
-    the_fourth_field: &'static str,
-}
-
-struct TupleStruct(f64, i16);
-
-struct EmptyStruct;
-
-enum CStyleEnum {
-    CStyleEnumVar1,
-    CStyleEnumVar2,
-    CStyleEnumVar3,
-}
-
-enum MixedEnum {
-    MixedEnumCStyleVar,
-    MixedEnumTupleVar(u32, u16, bool),
-    MixedEnumStructVar { field1: f64, field2: i32 }
-}
-
-struct NestedStruct {
-    regular_struct: RegularStruct,
-    tuple_struct: TupleStruct,
-    empty_struct: EmptyStruct,
-    c_style_enum: CStyleEnum,
-    mixed_enum: MixedEnum,
-}
-
-enum NestedEnum {
-    NestedVariant1(NestedStruct),
-    NestedVariant2 { abc: NestedStruct }
-}
-
-fn main() {
-
-    let regular_struct = RegularStruct {
-        the_first_field: 101,
-        the_second_field: 102.5,
-        the_third_field: false,
-        the_fourth_field: "I'm so pretty, oh so pretty..."
-    };
-
-    let tuple = ( true, 103u32, "blub" );
-
-    let tuple_struct = TupleStruct(-104.5, 105);
-
-    let empty_struct = EmptyStruct;
-
-    let c_style_enum1 = CStyleEnumVar1;
-    let c_style_enum2 = CStyleEnumVar2;
-    let c_style_enum3 = CStyleEnumVar3;
-
-    let mixed_enum_c_style_var = MixedEnumCStyleVar;
-    let mixed_enum_tuple_var = MixedEnumTupleVar(106, 107, false);
-    let mixed_enum_struct_var = MixedEnumStructVar { field1: 108.5, field2: 109 };
-
-    let some = Some(110_usize);
-    let none: Option<isize> = None;
-    let some_fat = Some("abc");
-    let none_fat: Option<&'static str> = None;
-
-    let nested_variant1 = NestedVariant1(
-        NestedStruct {
-            regular_struct: RegularStruct {
-                the_first_field: 111,
-                the_second_field: 112.5,
-                the_third_field: true,
-                the_fourth_field: "NestedStructString1",
-            },
-            tuple_struct: TupleStruct(113.5, 114),
-            empty_struct: EmptyStruct,
-            c_style_enum: CStyleEnumVar2,
-            mixed_enum: MixedEnumTupleVar(115, 116, false)
-        }
-    );
-
-    let nested_variant2 = NestedVariant2 {
-        abc: NestedStruct {
-            regular_struct: RegularStruct {
-                the_first_field: 117,
-                the_second_field: 118.5,
-                the_third_field: false,
-                the_fourth_field: "NestedStructString10",
-            },
-            tuple_struct: TupleStruct(119.5, 120),
-            empty_struct: EmptyStruct,
-            c_style_enum: CStyleEnumVar3,
-            mixed_enum: MixedEnumStructVar {
-                field1: 121.5,
-                field2: -122
-            }
-        }
-    };
-
-    let none_check1: Option<(usize, Vec<usize>)> = None;
-    let none_check2: Option<String> = None;
-
-    zzz(); // #break
-}
-
-fn zzz() { () }
diff --git a/src/test/debuginfo/generic-trait-generic-static-default-method.rs b/src/test/debuginfo/generic-trait-generic-static-default-method.rs
deleted file mode 100644
index 45da87a5674..00000000000
--- a/src/test/debuginfo/generic-trait-generic-static-default-method.rs
+++ /dev/null
@@ -1,52 +0,0 @@
-// ignore-test
-
-// Copyright 2013-2014 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 <LICENSE-APACHE or
-// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
-// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
-// option. This file may not be copied, modified, or distributed
-// except according to those terms.
-
-// compile-flags:-g
-// gdb-command:run
-
-// gdb-command:print arg1
-// gdb-check:$1 = 1000
-// gdb-command:print *arg2
-// gdb-check:$2 = {1, 2.5}
-// gdb-command:continue
-
-// gdb-command:print arg1
-// gdb-check:$3 = 2000
-// gdb-command:print *arg2
-// gdb-check:$4 = {3.5, {4, 5, 6}}
-// gdb-command:continue
-
-#![omit_gdb_pretty_printer_section]
-
-struct Struct {
-    x: isize
-}
-
-trait Trait<T1> {
-    fn generic_static_default_method<T2>(arg1: isize, arg2: &(T1, T2)) -> isize {
-        zzz(); // #break
-        arg1
-    }
-}
-
-impl<T> Trait<T> for Struct {}
-
-fn main() {
-
-    // Is this really how to use these?
-    Trait::generic_static_default_method::<isize, Struct, float>(1000, &(1, 2.5));
-    Trait::generic_static_default_method::<float, Struct, (isize, isize, isize)>(2000,
-            &(3.5, (4, 5, 6)));
-
-}
-
-fn zzz() {()}
diff --git a/src/test/debuginfo/issue11600.rs b/src/test/debuginfo/issue11600.rs
deleted file mode 100644
index dea2a0c5a23..00000000000
--- a/src/test/debuginfo/issue11600.rs
+++ /dev/null
@@ -1,30 +0,0 @@
-// Copyright 2014 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 <LICENSE-APACHE or
-// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
-// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
-// option. This file may not be copied, modified, or distributed
-// except according to those terms.
-
-// This test was actually never run before because commands were only parsed up to the first
-// function definition but the test relied on the function being above the commands. Ignore for now.
-// ignore-test
-
-fn main() {
-    let args : Vec<String> = ::std::os::args();
-    ::std::io::println(args[0]);
-}
-
-// ignore-lldb
-
-// This test case checks whether compile unit names are set correctly, so that the correct default
-// source file can be found.
-
-// compile-flags:-g
-// gdb-command:list
-// gdb-check:1[...]fn main() {
-// gdb-check:2[...]let args : Vec<String> = ::std::os::args();
-// gdb-check:3[...]::std::io::println(args[0]);
-// gdb-check:4[...]}
diff --git a/src/test/debuginfo/trait-generic-static-default-method.rs b/src/test/debuginfo/trait-generic-static-default-method.rs
deleted file mode 100644
index d066af53e35..00000000000
--- a/src/test/debuginfo/trait-generic-static-default-method.rs
+++ /dev/null
@@ -1,71 +0,0 @@
-// ignore-test
-
-// Copyright 2013-2014 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 <LICENSE-APACHE or
-// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
-// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
-// option. This file may not be copied, modified, or distributed
-// except according to those terms.
-
-// compile-flags:-g
-
-// === GDB TESTS ===================================================================================
-
-// gdb-command:run
-
-// gdb-command:print arg1
-// gdb-check:$1 = 1000
-// gdb-command:print arg2
-// gdb-check:$2 = 0.5
-// gdb-command:continue
-
-// gdb-command:print arg1
-// gdb-check:$3 = 2000
-// gdb-command:print *arg2
-// gdb-check:$4 = {1, 2, 3}
-// gdb-command:continue
-
-
-// === LLDB TESTS ==================================================================================
-
-// lldb-command:run
-
-// lldb-command:print arg1
-// lldb-check:[...]$0 = 1000
-// lldb-command:print arg2
-// lldb-check:[...]$1 = 0.5
-// lldb-command:continue
-
-// lldb-command:print arg1
-// lldb-check:[...]$2 = 2000
-// lldb-command:print *arg2
-// lldb-check:[...]$3 = (1, 2, 3)
-// lldb-command:continue
-
-#![omit_gdb_pretty_printer_section]
-
-struct Struct {
-    x: isize
-}
-
-trait Trait {
-    fn generic_static_default_method<T>(arg1: isize, arg2: T) -> isize {
-        zzz(); // #break
-        arg1
-    }
-}
-
-impl Trait for Struct {}
-
-fn main() {
-
-    // Is this really how to use these?
-    Trait::generic_static_default_method::<Struct, float>(1000, 0.5);
-    Trait::generic_static_default_method::<Struct, &(isize, isize, isize)>(2000, &(1, 2, 3));
-
-}
-
-fn zzz() {()}