[Lldb-commits] [lldb] r129960 - /lldb/trunk/test/abbreviation_tests/TestAbbreviations.py

Johnny Chen johnny.chen at apple.com
Thu Apr 21 17:13:28 PDT 2011


Author: johnny
Date: Thu Apr 21 19:13:28 2011
New Revision: 129960

URL: http://llvm.org/viewvc/llvm-project?rev=129960&view=rev
Log:
Conditionalize the self.expect("dis -f", ...) test scenario to check on Intel disassembly
only when the test is currently running against the relevant architecture.

Modified:
    lldb/trunk/test/abbreviation_tests/TestAbbreviations.py

Modified: lldb/trunk/test/abbreviation_tests/TestAbbreviations.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/abbreviation_tests/TestAbbreviations.py?rev=129960&r1=129959&r2=129960&view=diff
==============================================================================
--- lldb/trunk/test/abbreviation_tests/TestAbbreviations.py (original)
+++ lldb/trunk/test/abbreviation_tests/TestAbbreviations.py Thu Apr 21 19:13:28 2011
@@ -123,13 +123,15 @@
                                  "at main.cpp\:25", 
                                  "stop reason = breakpoint 2.1" ])
 
-        self.expect("dis -f",
-                    startstr = "a.out`sum(int, int):",
-                    substrs = [' push',
-                               ' mov',
-                               ' addl ',
-                               'ret'],
-                    patterns = ['(leave|popq|popl)'])                               
+        # ARCH, if not specified, defaults to x86_64.
+        if self.getArchitecture() in ["", 'x86_64', 'i386']:
+            self.expect("dis -f",
+                        startstr = "a.out`sum(int, int):",
+                        substrs = [' push',
+                                   ' mov',
+                                   ' addl ',
+                                   'ret'],
+                        patterns = ['(leave|popq|popl)'])                               
 
         self.expect("i d l main.cpp",
                     patterns = ["Line table for .*main.cpp in `a.out"])





More information about the lldb-commits mailing list