From f91daff9e6354692f2642e90eee87e73926395ab Mon Sep 17 00:00:00 2001 From: Chaoren Lin Date: Mon, 25 Apr 2016 23:29:53 +0000 Subject: [PATCH] Fix TestGetVariables.py. Reviewers: sivachandra, clayborg Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D19511 llvm-svn: 267492 --- .../lldbsuite/test/python_api/frame/get-variables/TestGetVariables.py | 2 +- .../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 16d1b4b..914c3d2 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 8191f6f..7fecfc0 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) { -- 2.7.4