diff options
| author | Michael Woerister <michaelwoerister@posteo> | 2014-07-09 14:46:09 +0200 |
|---|---|---|
| committer | Michael Woerister <michaelwoerister@posteo> | 2014-07-16 09:46:31 +0200 |
| commit | c7f45a9458967f9acec23c40941c285b58790c0b (patch) | |
| tree | f777a945d0e650c308fa38f63478f6ebcad62d8a /src/test/debuginfo/borrowed-managed-basic.rs | |
| parent | b56ef794a0690d29757d3934d3611018bb4f7b66 (diff) | |
debuginfo: Add LLDB autotests to debuginfo test suite.
This commit adds LLDB autotests to the test suite but does not activate them by default yet.
Diffstat (limited to 'src/test/debuginfo/borrowed-managed-basic.rs')
| -rw-r--r-- | src/test/debuginfo/borrowed-managed-basic.rs | 56 |
1 files changed, 55 insertions, 1 deletions
diff --git a/src/test/debuginfo/borrowed-managed-basic.rs b/src/test/debuginfo/borrowed-managed-basic.rs index 0f81e530fdd..82e44b46d3c 100644 --- a/src/test/debuginfo/borrowed-managed-basic.rs +++ b/src/test/debuginfo/borrowed-managed-basic.rs @@ -16,6 +16,9 @@ // its numerical value. // compile-flags:-g + +// === GDB TESTS =================================================================================== + // gdb-command:rbreak zzz // gdb-command:run // gdb-command:finish @@ -61,6 +64,56 @@ // gdb-command:print *f64_ref // gdb-check:$14 = 3.5 + +// === LLDB TESTS ================================================================================== + +// lldb-command:type format add -f decimal char +// lldb-command:type format add -f decimal 'unsigned char' +// lldb-command:run + +// lldb-command:print *bool_ref +// lldb-check:[...]$0 = true + +// lldb-command:print *int_ref +// lldb-check:[...]$1 = -1 + +// LLDB can't handle 32bit chars yet +// d ebugger:print *char_ref +// c heck:[...]$x = 97 + +// lldb-command:print *i8_ref +// lldb-check:[...]$2 = 68 + +// lldb-command:print *i16_ref +// lldb-check:[...]$3 = -16 + +// lldb-command:print *i32_ref +// lldb-check:[...]$4 = -32 + +// lldb-command:print *i64_ref +// lldb-check:[...]$5 = -64 + +// lldb-command:print *uint_ref +// lldb-check:[...]$6 = 1 + +// lldb-command:print *u8_ref +// lldb-check:[...]$7 = 100 + +// lldb-command:print *u16_ref +// lldb-check:[...]$8 = 16 + +// lldb-command:print *u32_ref +// lldb-check:[...]$9 = 32 + +// lldb-command:print *u64_ref +// lldb-check:[...]$10 = 64 + +// lldb-command:print *f32_ref +// lldb-check:[...]$11 = 2.5 + +// lldb-command:print *f64_ref +// lldb-check:[...]$12 = 3.5 + #![allow(unused_variable)] use std::gc::{Gc, GC}; @@ -107,7 +160,8 @@ fn main() { let f64_box: Gc<f64> = box(GC) 3.5; let f64_ref: &f64 = f64_box; - zzz(); + + zzz(); // #break } fn zzz() {()} |
