Remove a test that depends on knowing all compiler's register allocation schemes.
authorJim Ingham <jingham@apple.com>
Fri, 19 Aug 2016 22:58:26 +0000 (22:58 +0000)
committerJim Ingham <jingham@apple.com>
Fri, 19 Aug 2016 22:58:26 +0000 (22:58 +0000)
This test was using a condition that would compare a variable against the register that would hold
it.  It was failing with clang on arm64 because clang put the variable on the stack.

This is not a supportable way to write tests.

llvm-svn: 279345

lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/breakpoint_conditions/TestBreakpointConditions.py

index 8380159..8d2732f 100644 (file)
@@ -108,29 +108,6 @@ class BreakpointConditionsTestCase(TestBase):
             startstr = '(int) val = 1')
 
         self.runCmd("process kill")
-        self.runCmd("breakpoint disable")
-
-        self.runCmd("breakpoint set -p Loop")
-        arch = self.getArchitecture()
-        if arch in ['x86_64', 'i386']:
-            self.runCmd("breakpoint modify -c ($eax&&i)")
-        elif arch in ['aarch64']:
-            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,
-            patterns = ['Process .* stopped'])
-
-        self.runCmd("continue")
-
-        self.expect("process status", PROCESS_EXITED,
-            patterns = ['Process .* exited'])
 
     def breakpoint_conditions_python(self):
         """Use Python APIs to set breakpoint conditions."""