[Lldb-commits] [lldb] r113030 - /lldb/trunk/test/global_variables/TestGlobalVariables.py

Johnny Chen johnny.chen at apple.com
Fri Sep 3 16:16:49 PDT 2010


Author: johnny
Date: Fri Sep  3 18:16:49 2010
New Revision: 113030

URL: http://llvm.org/viewvc/llvm-project?rev=113030&view=rev
Log:
Converted TestGlobalVariables.py to Dsym/Dwarf combination.

Modified:
    lldb/trunk/test/global_variables/TestGlobalVariables.py

Modified: lldb/trunk/test/global_variables/TestGlobalVariables.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/global_variables/TestGlobalVariables.py?rev=113030&r1=113029&r2=113030&view=diff
==============================================================================
--- lldb/trunk/test/global_variables/TestGlobalVariables.py (original)
+++ lldb/trunk/test/global_variables/TestGlobalVariables.py Fri Sep  3 18:16:49 2010
@@ -9,7 +9,18 @@
 
     mydir = "global_variables"
 
-    def test_global_variables(self):
+    @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
+    def test_with_dsym(self):
+        """Test 'frame variable -s -a' which omits args and shows scopes."""
+        self.buildDsym()
+        self.global_variables()
+
+    def test_with_dwarf(self):
+        """Test 'frame variable -s -a' which omits args and shows scopes."""
+        self.buildDwarf()
+        self.global_variables()
+
+    def global_variables(self):
         """Test 'frame variable -s -a' which omits args and shows scopes."""
         exe = os.path.join(os.getcwd(), "a.out")
         self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)





More information about the lldb-commits mailing list