about summary refs log tree commit diff
path: root/src/test/debuginfo/function-arguments.rs
diff options
context:
space:
mode:
authorMichael Woerister <michaelwoerister@posteo>2014-07-09 14:46:09 +0200
committerMichael Woerister <michaelwoerister@posteo>2014-07-16 09:46:31 +0200
commitc7f45a9458967f9acec23c40941c285b58790c0b (patch)
treef777a945d0e650c308fa38f63478f6ebcad62d8a /src/test/debuginfo/function-arguments.rs
parentb56ef794a0690d29757d3934d3611018bb4f7b66 (diff)
downloadrust-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/function-arguments.rs')
-rw-r--r--src/test/debuginfo/function-arguments.rs26
1 files changed, 23 insertions, 3 deletions
diff --git a/src/test/debuginfo/function-arguments.rs b/src/test/debuginfo/function-arguments.rs
index e65b9a2519d..69bd5ae1d6c 100644
--- a/src/test/debuginfo/function-arguments.rs
+++ b/src/test/debuginfo/function-arguments.rs
@@ -11,6 +11,9 @@
 // ignore-android: FIXME(#10381)
 
 // compile-flags:-g
+
+// === GDB TESTS ===================================================================================
+
 // gdb-command:rbreak zzz
 // gdb-command:run
 // gdb-command:finish
@@ -28,21 +31,38 @@
 // gdb-command:print b
 // gdb-check:$4 = 3000
 
+
+// === LLDB TESTS ==================================================================================
+
+// lldb-command:run
+
+// lldb-command:print x
+// lldb-check:[...]$0 = 111102
+// lldb-command:print y
+// lldb-check:[...]$1 = true
+// lldb-command:continue
+
+// lldb-command:print a
+// lldb-check:[...]$2 = 2000
+// lldb-command:print b
+// lldb-check:[...]$3 = 3000
+// lldb-command:continue
+
 fn main() {
 
     fun(111102, true);
     nested(2000, 3000);
 
     fn nested(a: i32, b: i64) -> (i32, i64) {
-        zzz();
+        zzz(); // #break
         (a, b)
     }
 }
 
 fn fun(x: int, y: bool) -> (int, bool) {
-    zzz();
+    zzz(); // #break
 
     (x, y)
 }
 
-fn zzz() {()}
+fn zzz() { () }