[Lldb-commits] [lldb] c1912c7 - [lldb/Test] Use arrays instead of sets for build_and_run_expr

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Mon Feb 3 20:33:53 PST 2020


Author: Jonas Devlieghere
Date: 2020-02-03T20:32:36-08:00
New Revision: c1912c7542d6f49dfd6cce03193727981529db8a

URL: https://github.com/llvm/llvm-project/commit/c1912c7542d6f49dfd6cce03193727981529db8a
DIFF: https://github.com/llvm/llvm-project/commit/c1912c7542d6f49dfd6cce03193727981529db8a.diff

LOG: [lldb/Test] Use arrays instead of sets for build_and_run_expr

Added: 
    

Modified: 
    lldb/packages/Python/lldbsuite/test/types/TestLongTypes.py
    lldb/packages/Python/lldbsuite/test/types/TestLongTypesExpr.py

Removed: 
    


################################################################################
diff  --git a/lldb/packages/Python/lldbsuite/test/types/TestLongTypes.py b/lldb/packages/Python/lldbsuite/test/types/TestLongTypes.py
index 28f81937409e..74c4627a504a 100644
--- a/lldb/packages/Python/lldbsuite/test/types/TestLongTypes.py
+++ b/lldb/packages/Python/lldbsuite/test/types/TestLongTypes.py
@@ -13,39 +13,39 @@ class LongTypesTestCase(AbstractBase.GenericTester):
 
     def test_long_type(self):
         """Test that long-type variables are displayed correctly."""
-        self.build_and_run('long.cpp', set(['long']))
+        self.build_and_run('long.cpp', ['long'])
 
     @skipUnlessDarwin
     def test_long_type_from_block(self):
         """Test that long-type variables are displayed correctly from a block."""
-        self.build_and_run('long.cpp', set(['long']), bc=True)
+        self.build_and_run('long.cpp', ['long'], bc=True)
 
     def test_unsigned_long_type(self):
         """Test that 'unsigned long'-type variables are displayed correctly."""
-        self.build_and_run('unsigned_long.cpp', set(['unsigned', 'long']))
+        self.build_and_run('unsigned_long.cpp', ['unsigned', 'long'])
 
     @skipUnlessDarwin
     def test_unsigned_long_type_from_block(self):
         """Test that 'unsigned_long'-type variables are displayed correctly from a block."""
         self.build_and_run(
-            'unsigned_long.cpp', set(['unsigned', 'long']), bc=True)
+            'unsigned_long.cpp', ['unsigned', 'long'], bc=True)
 
     def test_long_long_type(self):
         """Test that 'long long'-type variables are displayed correctly."""
-        self.build_and_run('long_long.cpp', set(['long long']))
+        self.build_and_run('long_long.cpp', ['long long'])
 
     @skipUnlessDarwin
     def test_long_long_type_from_block(self):
         """Test that 'long_long'-type variables are displayed correctly from a block."""
-        self.build_and_run('long_long.cpp', set(['long long']), bc=True)
+        self.build_and_run('long_long.cpp', ['long long'], bc=True)
 
     def test_unsigned_long_long_type(self):
         """Test that 'unsigned long long'-type variables are displayed correctly."""
         self.build_and_run('unsigned_long_long.cpp',
-                           set(['unsigned', 'long long']))
+                           ['unsigned', 'long long'])
 
     @skipUnlessDarwin
     def test_unsigned_long_long_type_from_block(self):
         """Test that 'unsigned_long_long'-type variables are displayed correctly from a block."""
         self.build_and_run(
-            'unsigned_long_long.cpp', set(['unsigned', 'long long']), bc=True)
+            'unsigned_long_long.cpp', ['unsigned', 'long long'], bc=True)

diff  --git a/lldb/packages/Python/lldbsuite/test/types/TestLongTypesExpr.py b/lldb/packages/Python/lldbsuite/test/types/TestLongTypesExpr.py
index b753a9d5a890..9a33d36626da 100644
--- a/lldb/packages/Python/lldbsuite/test/types/TestLongTypesExpr.py
+++ b/lldb/packages/Python/lldbsuite/test/types/TestLongTypesExpr.py
@@ -13,39 +13,39 @@ class LongTypesExprTestCase(AbstractBase.GenericTester):
 
     def test_long_type(self):
         """Test that long-type variable expressions are evaluated correctly."""
-        self.build_and_run_expr('long.cpp', set(['long']))
+        self.build_and_run_expr('long.cpp', ['long'])
 
     @skipUnlessDarwin
     def test_long_type_from_block(self):
         """Test that long-type variables are displayed correctly from a block."""
-        self.build_and_run_expr('long.cpp', set(['long']), bc=True)
+        self.build_and_run_expr('long.cpp', ['long'], bc=True)
 
     def test_unsigned_long_type(self):
         """Test that 'unsigned long'-type variable expressions are evaluated correctly."""
-        self.build_and_run_expr('unsigned_long.cpp', set(['unsigned', 'long']))
+        self.build_and_run_expr('unsigned_long.cpp', ['unsigned', 'long'])
 
     @skipUnlessDarwin
     def test_unsigned_long_type_from_block(self):
         """Test that 'unsigned_long'-type variables are displayed correctly from a block."""
         self.build_and_run_expr(
-            'unsigned_long.cpp', set(['unsigned', 'long']), bc=True)
+            'unsigned_long.cpp', ['unsigned', 'long'], bc=True)
 
     def test_long_long_type(self):
         """Test that 'long long'-type variable expressions are evaluated correctly."""
-        self.build_and_run_expr('long_long.cpp', set(['long long']))
+        self.build_and_run_expr('long_long.cpp', ['long long'])
 
     @skipUnlessDarwin
     def test_long_long_type_from_block(self):
         """Test that 'long_long'-type variables are displayed correctly from a block."""
-        self.build_and_run_expr('long_long.cpp', set(['long long']), bc=True)
+        self.build_and_run_expr('long_long.cpp', ['long long'], bc=True)
 
     def test_unsigned_long_long_type(self):
         """Test that 'unsigned long long'-type variable expressions are evaluated correctly."""
         self.build_and_run_expr('unsigned_long_long.cpp',
-                                set(['unsigned', 'long long']))
+                                ['unsigned', 'long long'])
 
     @skipUnlessDarwin
     def test_unsigned_long_long_type_from_block(self):
         """Test that 'unsigned_long_long'-type variables are displayed correctly from a block."""
         self.build_and_run_expr(
-            'unsigned_long_long.cpp', set(['unsigned', 'long long']), bc=True)
+            'unsigned_long_long.cpp', ['unsigned', 'long long'], bc=True)


        


More information about the lldb-commits mailing list