diff options
author | 2020-08-03 14:33:06 +0000 | |
---|---|---|
committer | 2020-08-03 14:33:06 +0000 | |
commit | 061da546b983eb767bad15e67af1174fb0bcf31c (patch) | |
tree | 83c78b820819d70aa40c36d90447978b300078c5 /gnu/llvm/lldb/packages/Python/lldbsuite/test/commands/source/info | |
parent | Import LLVM 10.0.0 release including clang, lld and lldb. (diff) | |
download | wireguard-openbsd-061da546b983eb767bad15e67af1174fb0bcf31c.tar.xz wireguard-openbsd-061da546b983eb767bad15e67af1174fb0bcf31c.zip |
Import LLVM 10.0.0 release including clang, lld and lldb.
ok hackroom
tested by plenty
Diffstat (limited to 'gnu/llvm/lldb/packages/Python/lldbsuite/test/commands/source/info')
3 files changed, 23 insertions, 0 deletions
diff --git a/gnu/llvm/lldb/packages/Python/lldbsuite/test/commands/source/info/TestSourceInfo.py b/gnu/llvm/lldb/packages/Python/lldbsuite/test/commands/source/info/TestSourceInfo.py new file mode 100644 index 00000000000..c8308c16011 --- /dev/null +++ b/gnu/llvm/lldb/packages/Python/lldbsuite/test/commands/source/info/TestSourceInfo.py @@ -0,0 +1,4 @@ +from lldbsuite.test import lldbinline +from lldbsuite.test import decorators + +lldbinline.MakeInlineTest(__file__, globals()) diff --git a/gnu/llvm/lldb/packages/Python/lldbsuite/test/commands/source/info/main.cpp b/gnu/llvm/lldb/packages/Python/lldbsuite/test/commands/source/info/main.cpp new file mode 100644 index 00000000000..7d714900418 --- /dev/null +++ b/gnu/llvm/lldb/packages/Python/lldbsuite/test/commands/source/info/main.cpp @@ -0,0 +1,14 @@ +int bar(); + +int foo() { + return 3; +} + +int main() { + int f = foo() + bar(); + f++; + return f; //%self.expect("source info", substrs=["Lines found in module ", "main.cpp:10"]) + //%self.expect("source info -f main.cpp -c 10", matching=True, substrs=["main.cpp:10"]) + //%self.expect("source info -f main.cpp -c 1", matching=False, substrs=["main.cpp:10"]) + //%self.expect("source info -f main.cpp -l 10", matching=False, substrs=["main.cpp:7"]) +} diff --git a/gnu/llvm/lldb/packages/Python/lldbsuite/test/commands/source/info/second.cpp b/gnu/llvm/lldb/packages/Python/lldbsuite/test/commands/source/info/second.cpp new file mode 100644 index 00000000000..0e068a691a8 --- /dev/null +++ b/gnu/llvm/lldb/packages/Python/lldbsuite/test/commands/source/info/second.cpp @@ -0,0 +1,5 @@ +int bar() { + int i = 3; //%self.expect("source info", substrs=["Lines found in module ", "second.cpp:2"]) + return i; //%self.expect("source info", substrs=["Lines found in module ", "second.cpp:3"]) + //%self.expect("source info --name main", substrs=["Lines found in module ", "main.cpp:7", "main.cpp:10"]) +} |