aboutsummaryrefslogtreecommitdiff
path: root/packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-globals/TestDataFormatterGlobals.py
diff options
context:
space:
mode:
Diffstat (limited to 'packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-globals/TestDataFormatterGlobals.py')
-rw-r--r--packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-globals/TestDataFormatterGlobals.py32
1 files changed, 18 insertions, 14 deletions
diff --git a/packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-globals/TestDataFormatterGlobals.py b/packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-globals/TestDataFormatterGlobals.py
index df3bef091c89..d3d93dabc7fb 100644
--- a/packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-globals/TestDataFormatterGlobals.py
+++ b/packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-globals/TestDataFormatterGlobals.py
@@ -5,12 +5,13 @@ Test lldb data formatter subsystem.
from __future__ import print_function
-
-import os, time
+import os
+import time
import lldb
from lldbsuite.test.lldbtest import *
import lldbsuite.test.lldbutil as lldbutil
+
class GlobalsDataFormatterTestCase(TestBase):
mydir = TestBase.compute_mydir(__file__)
@@ -26,7 +27,8 @@ class GlobalsDataFormatterTestCase(TestBase):
self.build()
self.runCmd("file a.out", CURRENT_EXECUTABLE_SET)
- lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=1, loc_exact=True)
+ lldbutil.run_break_set_by_file_and_line(
+ self, "main.cpp", self.line, num_expected_locations=1, loc_exact=True)
# This is the function to remove the custom formats in order to have a
# clean slate for the next test case.
@@ -41,27 +43,29 @@ class GlobalsDataFormatterTestCase(TestBase):
# Simply check we can get at global variables
self.expect("target variable g_point",
- substrs = ['JustATest'])
+ substrs=['JustATest'])
self.expect("target variable g_point_pointer",
- substrs = ['(Point *) g_point_pointer ='])
+ substrs=['(Point *) g_point_pointer ='])
# Print some information about the variables
# (we ignore the actual values)
- self.runCmd("type summary add --summary-string \"(x=${var.x},y=${var.y})\" Point")
+ self.runCmd(
+ "type summary add --summary-string \"(x=${var.x},y=${var.y})\" Point")
self.expect("target variable g_point",
- substrs = ['x=',
- 'y='])
-
+ substrs=['x=',
+ 'y='])
+
self.expect("target variable g_point_pointer",
- substrs = ['(Point *) g_point_pointer ='])
+ substrs=['(Point *) g_point_pointer ='])
# Test Python code on resulting SBValue
- self.runCmd("type summary add --python-script \"return 'x=' + str(valobj.GetChildMemberWithName('x').GetValue());\" Point")
+ self.runCmd(
+ "type summary add --python-script \"return 'x=' + str(valobj.GetChildMemberWithName('x').GetValue());\" Point")
self.expect("target variable g_point",
- substrs = ['x='])
-
+ substrs=['x='])
+
self.expect("target variable g_point_pointer",
- substrs = ['(Point *) g_point_pointer ='])
+ substrs=['(Point *) g_point_pointer ='])