Skip to content

Commit

Permalink
debuginfo: Gate all LLDB debuginfo tests on a minimum LLDB version be…
Browse files Browse the repository at this point in the history
…ing available
  • Loading branch information
michaelwoerister committed Oct 22, 2014
1 parent c29a752 commit 47e8cf7
Show file tree
Hide file tree
Showing 82 changed files with 100 additions and 16 deletions.
1 change: 1 addition & 0 deletions src/test/debuginfo/basic-types-globals-metadata.rs
Expand Up @@ -10,6 +10,7 @@

// ignore-windows: FIXME #13256
// ignore-android: FIXME(#10381)
// min-lldb-version: 310

// compile-flags:-g
// gdb-command:rbreak zzz
Expand Down
1 change: 1 addition & 0 deletions src/test/debuginfo/basic-types-globals.rs
Expand Up @@ -16,6 +16,7 @@

// ignore-windows: FIXME #13256
// ignore-android: FIXME(#10381)
// min-lldb-version: 310

// compile-flags:-g
// gdb-command:rbreak zzz
Expand Down
1 change: 1 addition & 0 deletions src/test/debuginfo/basic-types-metadata.rs
Expand Up @@ -9,6 +9,7 @@
// except according to those terms.

// ignore-android: FIXME(#10381)
// min-lldb-version: 310

// compile-flags:-g
// gdb-command:rbreak zzz
Expand Down
1 change: 1 addition & 0 deletions src/test/debuginfo/basic-types-mut-globals.rs
Expand Up @@ -16,6 +16,7 @@

// ignore-windows: FIXME #13256
// ignore-android: FIXME(#10381)
// min-lldb-version: 310

// compile-flags:-g
// gdb-command:rbreak zzz
Expand Down
1 change: 1 addition & 0 deletions src/test/debuginfo/basic-types.rs
Expand Up @@ -15,6 +15,7 @@
// its numerical value.

// ignore-android: FIXME(#10381)
// min-lldb-version: 310

// compile-flags:-g

Expand Down
1 change: 1 addition & 0 deletions src/test/debuginfo/borrowed-basic.rs
Expand Up @@ -14,6 +14,7 @@
// its numerical value.

// compile-flags:-g
// min-lldb-version: 310

// === GDB TESTS ===================================================================================

Expand Down
1 change: 1 addition & 0 deletions src/test/debuginfo/borrowed-c-style-enum.rs
Expand Up @@ -11,6 +11,7 @@
// ignore-android: FIXME(#10381)

// compile-flags:-g
// min-lldb-version: 310

// === GDB TESTS ===================================================================================

Expand Down
1 change: 1 addition & 0 deletions src/test/debuginfo/borrowed-enum.rs
Expand Up @@ -10,6 +10,7 @@

// ignore-tidy-linelength
// ignore-android: FIXME(#10381)
// min-lldb-version: 310

// compile-flags:-g

Expand Down
1 change: 1 addition & 0 deletions src/test/debuginfo/borrowed-struct.rs
Expand Up @@ -10,6 +10,7 @@

// ignore-android: FIXME(#10381)
// compile-flags:-g
// min-lldb-version: 310

// === GDB TESTS ===================================================================================

Expand Down
2 changes: 1 addition & 1 deletion src/test/debuginfo/borrowed-tuple.rs
Expand Up @@ -9,7 +9,7 @@
// except according to those terms.

// ignore-android: FIXME(#10381)

// min-lldb-version: 310

// compile-flags:-g

Expand Down
1 change: 1 addition & 0 deletions src/test/debuginfo/borrowed-unique-basic.rs
Expand Up @@ -9,6 +9,7 @@
// except according to those terms.

// ignore-android: FIXME(#10381)
// min-lldb-version: 310

// Gdb doesn't know about UTF-32 character encoding and will print a rust char as only
// its numerical value.
Expand Down
1 change: 1 addition & 0 deletions src/test/debuginfo/box.rs
Expand Up @@ -9,6 +9,7 @@
// except according to those terms.

// ignore-android: FIXME(#10381)
// min-lldb-version: 310

// compile-flags:-g

Expand Down
1 change: 1 addition & 0 deletions src/test/debuginfo/boxed-struct.rs
Expand Up @@ -9,6 +9,7 @@
// except according to those terms.

// ignore-android: FIXME(#10381)
// min-lldb-version: 310

// compile-flags:-g

Expand Down
1 change: 1 addition & 0 deletions src/test/debuginfo/by-value-non-immediate-argument.rs
Expand Up @@ -10,6 +10,7 @@

// ignore-tidy-linelength
// ignore-android: FIXME(#10381)
// min-lldb-version: 310

// compile-flags:-g

Expand Down
2 changes: 1 addition & 1 deletion src/test/debuginfo/by-value-self-argument-in-trait-impl.rs
Expand Up @@ -9,7 +9,7 @@
// except according to those terms.

// ignore-android: FIXME(#10381)

// min-lldb-version: 310

// compile-flags:-g

Expand Down
1 change: 1 addition & 0 deletions src/test/debuginfo/c-style-enum-in-composite.rs
Expand Up @@ -10,6 +10,7 @@

// ignore-tidy-linelength
// ignore-android: FIXME(#10381)
// min-lldb-version: 310

// compile-flags:-g

Expand Down
1 change: 1 addition & 0 deletions src/test/debuginfo/c-style-enum.rs
Expand Up @@ -10,6 +10,7 @@

// ignore-windows: FIXME #13256
// ignore-android: FIXME(#10381)
// min-lldb-version: 310

// compile-flags:-g

Expand Down
1 change: 1 addition & 0 deletions src/test/debuginfo/closure-in-generic-function.rs
Expand Up @@ -9,6 +9,7 @@
// except according to those terms.

// ignore-android: FIXME(#10381)
// min-lldb-version: 310

// compile-flags:-g

Expand Down
1 change: 1 addition & 0 deletions src/test/debuginfo/cross-crate-type-uniquing.rs
Expand Up @@ -9,6 +9,7 @@
// except according to those terms.

// ignore-android: FIXME(#10381)
// min-lldb-version: 310

// aux-build:cross_crate_debuginfo_type_uniquing.rs
extern crate cross_crate_debuginfo_type_uniquing;
Expand Down
1 change: 1 addition & 0 deletions src/test/debuginfo/destructured-fn-argument.rs
Expand Up @@ -9,6 +9,7 @@
// except according to those terms.

// ignore-android: FIXME(#10381)
// min-lldb-version: 310

// compile-flags:-g

Expand Down
1 change: 1 addition & 0 deletions src/test/debuginfo/destructured-local.rs
Expand Up @@ -9,6 +9,7 @@
// except according to those terms.

// ignore-android: FIXME(#10381)
// min-lldb-version: 310

// compile-flags:-g

Expand Down
1 change: 1 addition & 0 deletions src/test/debuginfo/evec-in-struct.rs
Expand Up @@ -9,6 +9,7 @@
// except according to those terms.

// ignore-android: FIXME(#10381)
// min-lldb-version: 310

// compile-flags:-g

Expand Down
23 changes: 12 additions & 11 deletions src/test/debuginfo/function-arg-initialization.rs
Expand Up @@ -9,6 +9,7 @@
// except according to those terms.

// ignore-android: FIXME(#10381)
// min-lldb-version: 310

// This test case checks if function arguments already have the correct value when breaking at the
// first line of the function, that is if the function prologue has already been executed at the
Expand All @@ -18,17 +19,17 @@

// compile-flags:-g
// gdb-command:set print pretty off
// gdb-command:break function-arg-initialization.rs:243
// gdb-command:break function-arg-initialization.rs:258
// gdb-command:break function-arg-initialization.rs:262
// gdb-command:break function-arg-initialization.rs:266
// gdb-command:break function-arg-initialization.rs:270
// gdb-command:break function-arg-initialization.rs:274
// gdb-command:break function-arg-initialization.rs:278
// gdb-command:break function-arg-initialization.rs:282
// gdb-command:break function-arg-initialization.rs:286
// gdb-command:break function-arg-initialization.rs:294
// gdb-command:break function-arg-initialization.rs:301
// gdb-command:break function-arg-initialization.rs:244
// gdb-command:break function-arg-initialization.rs:259
// gdb-command:break function-arg-initialization.rs:263
// gdb-command:break function-arg-initialization.rs:267
// gdb-command:break function-arg-initialization.rs:271
// gdb-command:break function-arg-initialization.rs:275
// gdb-command:break function-arg-initialization.rs:279
// gdb-command:break function-arg-initialization.rs:283
// gdb-command:break function-arg-initialization.rs:287
// gdb-command:break function-arg-initialization.rs:295
// gdb-command:break function-arg-initialization.rs:302

// === GDB TESTS ===================================================================================

Expand Down
1 change: 1 addition & 0 deletions src/test/debuginfo/function-arguments.rs
Expand Up @@ -9,6 +9,7 @@
// except according to those terms.

// ignore-android: FIXME(#10381)
// min-lldb-version: 310

// compile-flags:-g

Expand Down
Expand Up @@ -9,6 +9,7 @@
// except according to those terms.

// ignore-android: FIXME(#10381)
// min-lldb-version: 310

// This test case checks if function arguments already have the correct value when breaking at the
// beginning of a function. Functions with the #[no_stack_check] attribute have the same prologue as
Expand Down
1 change: 1 addition & 0 deletions src/test/debuginfo/function-prologue-stepping-regular.rs
Expand Up @@ -11,6 +11,7 @@
// This test case checks if function arguments already have the correct value when breaking at the
// beginning of a function.

// min-lldb-version: 310
// ignore-gdb
// compile-flags:-g

Expand Down
1 change: 1 addition & 0 deletions src/test/debuginfo/generic-function.rs
Expand Up @@ -9,6 +9,7 @@
// except according to those terms.

// ignore-android: FIXME(#10381)
// min-lldb-version: 310

// compile-flags:-g

Expand Down
1 change: 1 addition & 0 deletions src/test/debuginfo/generic-functions-nested.rs
Expand Up @@ -9,6 +9,7 @@
// except according to those terms.

// ignore-android: FIXME(#10381)
// min-lldb-version: 310

// compile-flags:-g

Expand Down
1 change: 1 addition & 0 deletions src/test/debuginfo/generic-method-on-generic-struct.rs
Expand Up @@ -11,6 +11,7 @@
// ignore-android: FIXME(#10381)

// compile-flags:-g
// min-lldb-version: 310

// === GDB TESTS ===================================================================================

Expand Down
Expand Up @@ -9,8 +9,10 @@
// except according to those terms.

// ignore-android: FIXME(#10381)
// min-lldb-version: 310

// compile-flags:-g

// gdb-command:rbreak zzz
// gdb-command:run

Expand Down
2 changes: 2 additions & 0 deletions src/test/debuginfo/generic-struct-style-enum.rs
Expand Up @@ -10,8 +10,10 @@

// ignore-tidy-linelength
// ignore-android: FIXME(#10381)
// min-lldb-version: 310

// compile-flags:-g

// gdb-command:set print union on
// gdb-command:rbreak zzz
// gdb-command:run
Expand Down
1 change: 1 addition & 0 deletions src/test/debuginfo/generic-struct.rs
Expand Up @@ -10,6 +10,7 @@

// ignore-tidy-linelength
// ignore-android: FIXME(#10381)
// min-lldb-version: 310

// compile-flags:-g

Expand Down
1 change: 1 addition & 0 deletions src/test/debuginfo/generic-tuple-style-enum.rs
Expand Up @@ -10,6 +10,7 @@

// ignore-tidy-linelength
// ignore-android: FIXME(#10381)
// min-lldb-version: 310

// compile-flags:-g

Expand Down
1 change: 1 addition & 0 deletions src/test/debuginfo/include_string.rs
Expand Up @@ -9,6 +9,7 @@
// except according to those terms.

// ignore-android: FIXME(#10381)
// min-lldb-version: 310

// compile-flags:-g
// gdb-command:rbreak zzz
Expand Down
1 change: 1 addition & 0 deletions src/test/debuginfo/issue11600.rs
Expand Up @@ -18,6 +18,7 @@ fn main() {
}

// ignore-android: FIXME(#10381)
// ignore-lldb

// This test case checks whether compile unit names are set correctly, so that the correct default
// source file can be found.
Expand Down
7 changes: 4 additions & 3 deletions src/test/debuginfo/issue12886.rs
Expand Up @@ -10,18 +10,19 @@

// ignore-android: FIXME(#10381)
// ignore-windows failing on 64-bit bots FIXME #17638
// ignore-lldb

// compile-flags:-g
// gdb-command:break issue12886.rs:30
// gdb-command:break issue12886.rs:31
// gdb-command:run
// gdb-command:next
// gdb-check:[...]31[...]s
// gdb-check:[...]32[...]s
// gdb-command:continue

// IF YOU MODIFY THIS FILE, BE CAREFUL TO ADAPT THE LINE NUMBERS IN THE DEBUGGER COMMANDS

// This test makes sure that gdb does not set unwanted breakpoints in inlined functions. If a
// breakpoint existed in unwrap(), then calling `next` would (when stopped at line 27) would stop
// breakpoint existed in unwrap(), then calling `next` would (when stopped at line 31) stop
// in unwrap() instead of stepping over the function invocation. By making sure that `s` is
// contained in the output, after calling `next` just once, we can be sure that we did not stop in
// unwrap(). (The testing framework doesn't allow for checking that some text is *not* contained in
Expand Down
1 change: 1 addition & 0 deletions src/test/debuginfo/issue13213.rs
Expand Up @@ -9,6 +9,7 @@
// except according to those terms.

// ignore-android: FIXME(#10381)
// ignore-lldb

// aux-build:issue13213aux.rs
extern crate issue13213aux;
Expand Down
1 change: 1 addition & 0 deletions src/test/debuginfo/issue14411.rs
Expand Up @@ -9,6 +9,7 @@
// except according to those terms.

// ignore-android: FIXME(#10381)
// ignore-lldb

// compile-flags:-g

Expand Down
1 change: 1 addition & 0 deletions src/test/debuginfo/issue7712.rs
Expand Up @@ -9,6 +9,7 @@
// except according to those terms.

// compile-flags:--debuginfo=1
// ignore-lldb

pub trait TraitWithDefaultMethod {
fn method(self) {
Expand Down
1 change: 1 addition & 0 deletions src/test/debuginfo/lexical-scope-in-for-loop.rs
Expand Up @@ -10,6 +10,7 @@

// ignore-android: FIXME(#10381)
// ignore-test: Not sure what is going on here --pcwalton
// min-lldb-version: 310

// compile-flags:-g

Expand Down
1 change: 1 addition & 0 deletions src/test/debuginfo/lexical-scope-in-if.rs
Expand Up @@ -9,6 +9,7 @@
// except according to those terms.

// ignore-android: FIXME(#10381)
// min-lldb-version: 310

// compile-flags:-g

Expand Down
1 change: 1 addition & 0 deletions src/test/debuginfo/lexical-scope-in-match.rs
Expand Up @@ -9,6 +9,7 @@
// except according to those terms.

// ignore-android: FIXME(#10381)
// min-lldb-version: 310

// compile-flags:-g

Expand Down

0 comments on commit 47e8cf7

Please sign in to comment.