diff options
author | Chaoren Lin <chaorenl@google.com> | 2016-04-25 23:29:53 +0000 |
---|---|---|
committer | Chaoren Lin <chaorenl@google.com> | 2016-04-25 23:29:53 +0000 |
commit | f91daff9e6354692f2642e90eee87e73926395ab (patch) | |
tree | d6f4fbf2284e10d8b11f145cb1dda9e124218cbb /lldb/packages/Python/lldbsuite/test/python_api/frame | |
parent | 82059090d361c98d836b603b83535208f5e571b9 (diff) | |
download | bcm5719-llvm-f91daff9e6354692f2642e90eee87e73926395ab.tar.gz bcm5719-llvm-f91daff9e6354692f2642e90eee87e73926395ab.zip |
Fix TestGetVariables.py.
Reviewers: sivachandra, clayborg
Subscribers: lldb-commits
Differential Revision: http://reviews.llvm.org/D19511
llvm-svn: 267492
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/frame')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/python_api/frame/get-variables/TestGetVariables.py | 2 | ||||
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/python_api/frame/get-variables/main.c | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/python_api/frame/get-variables/TestGetVariables.py b/lldb/packages/Python/lldbsuite/test/python_api/frame/get-variables/TestGetVariables.py index 16d1b4b7ac1..914c3d25fd5 100644 --- a/lldb/packages/Python/lldbsuite/test/python_api/frame/get-variables/TestGetVariables.py +++ b/lldb/packages/Python/lldbsuite/test/python_api/frame/get-variables/TestGetVariables.py @@ -79,7 +79,7 @@ class TestGetVariables(TestBase): arg_names = ['argc', 'argv'] local_names = ['i', 'j', 'k'] - static_names = ['static_var', 'g_global_var', 'static_var'] + static_names = ['static_var', 'g_global_var', 'g_static_var'] breakpoint1_locals = ['i'] breakpoint1_statics = ['static_var'] num_args = len(arg_names) diff --git a/lldb/packages/Python/lldbsuite/test/python_api/frame/get-variables/main.c b/lldb/packages/Python/lldbsuite/test/python_api/frame/get-variables/main.c index 8191f6f55cc..7fecfc0293c 100644 --- a/lldb/packages/Python/lldbsuite/test/python_api/frame/get-variables/main.c +++ b/lldb/packages/Python/lldbsuite/test/python_api/frame/get-variables/main.c @@ -12,8 +12,9 @@ int g_global_var = 123; static int g_static_var = 123; int main (int argc, char const *argv[]) -{ +{ static int static_var = 123; + g_static_var = 123; // clang bug. Need to touch this variable, otherwise it disappears. int i = 0; // breakpoint 1 for (i=0; i<1; ++i) { |