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/include_string.rs | |
| parent | b56ef794a0690d29757d3934d3611018bb4f7b66 (diff) | |
| download | rust-c7f45a9458967f9acec23c40941c285b58790c0b.tar.gz rust-c7f45a9458967f9acec23c40941c285b58790c0b.zip | |
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/include_string.rs')
| -rw-r--r-- | src/test/debuginfo/include_string.rs | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/src/test/debuginfo/include_string.rs b/src/test/debuginfo/include_string.rs index 977e304a32e..ed9767c78f3 100644 --- a/src/test/debuginfo/include_string.rs +++ b/src/test/debuginfo/include_string.rs @@ -15,13 +15,27 @@ // gdb-command:run // gdb-command:finish // gdb-command:print string1.length -// gdb-check:$1 = 49 +// gdb-check:$1 = 48 // gdb-command:print string2.length // gdb-check:$2 = 49 // gdb-command:print string3.length -// gdb-check:$3 = 49 +// gdb-check:$3 = 50 // gdb-command:continue + +// === LLDB TESTS ================================================================================== + +// lldb-command:run + +// lldb-command:print string1.length +// lldb-check:[...]$0 = 48 +// lldb-command:print string2.length +// lldb-check:[...]$1 = 49 +// lldb-command:print string3.length +// lldb-check:[...]$2 = 50 + +// lldb-command:continue + #![allow(unused_variable)] // This test case makes sure that debug info does not ICE when include_str is @@ -31,7 +45,8 @@ fn main() { let string1 = include_str!("text-to-include-1.txt"); let string2 = include_str!("text-to-include-2.txt"); let string3 = include_str!("text-to-include-3.txt"); - zzz(); + + zzz(); // #break } fn zzz() {()} |
