diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2016-07-23 20:50:09 +0000 | 
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2016-07-23 20:50:09 +0000 | 
| commit | f3fbd1c0586ff6ec7895991e6c28f61a503c36a8 (patch) | |
| tree | 48d008fd3df8c0e73271a4b18474e0aac6dbfe33 /packages/Python/lldbsuite/test/functionalities/breakpoint/breakpoint_conditions | |
| parent | 2fc5d2d1dfaf623ce4e24cd8590565902f8c557c (diff) | |
Notes
Diffstat (limited to 'packages/Python/lldbsuite/test/functionalities/breakpoint/breakpoint_conditions')
| -rw-r--r-- | packages/Python/lldbsuite/test/functionalities/breakpoint/breakpoint_conditions/TestBreakpointConditions.py | 11 | 
1 files changed, 9 insertions, 2 deletions
| diff --git a/packages/Python/lldbsuite/test/functionalities/breakpoint/breakpoint_conditions/TestBreakpointConditions.py b/packages/Python/lldbsuite/test/functionalities/breakpoint/breakpoint_conditions/TestBreakpointConditions.py index 8c22c8fe869c..0d34dd85dc50 100644 --- a/packages/Python/lldbsuite/test/functionalities/breakpoint/breakpoint_conditions/TestBreakpointConditions.py +++ b/packages/Python/lldbsuite/test/functionalities/breakpoint/breakpoint_conditions/TestBreakpointConditions.py @@ -9,8 +9,9 @@ from __future__ import print_function  import os, time  import re  import lldb -import lldbsuite.test.lldbutil as lldbutil +from lldbsuite.test.decorators import *  from lldbsuite.test.lldbtest import * +from lldbsuite.test import lldbutil  class BreakpointConditionsTestCase(TestBase): @@ -107,11 +108,13 @@ class BreakpointConditionsTestCase(TestBase):          if arch in ['x86_64', 'i386']:              self.runCmd("breakpoint modify -c ($eax&&i)")          elif arch in ['aarch64']: -            self.runCmd("breakpoint modify -c ($x1&&i)") +            self.runCmd("breakpoint modify -c ($x0&&i)")          elif arch in ['arm']:              self.runCmd("breakpoint modify -c ($r0&&i)")          elif re.match("mips",arch):              self.runCmd("breakpoint modify -c ($r2&&i)") +        elif arch in ['s390x']: +            self.runCmd("breakpoint modify -c ($r2&&i)")          self.runCmd("run")          self.expect("process status", PROCESS_STOPPED, @@ -178,4 +181,8 @@ class BreakpointConditionsTestCase(TestBase):          # The hit count for the breakpoint should be 1.          self.assertTrue(breakpoint.GetHitCount() == 1) +        # Test that the condition expression didn't create a result variable: +        options = lldb.SBExpressionOptions() +        value = frame0.EvaluateExpression("$0", options) +        self.assertTrue(value.GetError().Fail(), "Conditions should not make result variables.")          process.Continue() | 
