diff options
| author | Zachary Turner <zturner@google.com> | 2015-10-26 16:49:57 +0000 |
|---|---|---|
| committer | Zachary Turner <zturner@google.com> | 2015-10-26 16:49:57 +0000 |
| commit | 744cd5d8ed9c46dc05718c9cf598a1a4f29ef8ff (patch) | |
| tree | 36d50ffc82ba2e43c7c581868a45c37c0a5d610c /lldb/test/functionalities | |
| parent | c4645bb0e653b85e2b41ce00c0f62a398d154f77 (diff) | |
| download | bcm5719-llvm-744cd5d8ed9c46dc05718c9cf598a1a4f29ef8ff.tar.gz bcm5719-llvm-744cd5d8ed9c46dc05718c9cf598a1a4f29ef8ff.zip | |
Fix usages of range() and xrange() for Python 3.
llvm-svn: 251302
Diffstat (limited to 'lldb/test/functionalities')
3 files changed, 4 insertions, 4 deletions
diff --git a/lldb/test/functionalities/inferior-assert/TestInferiorAssert.py b/lldb/test/functionalities/inferior-assert/TestInferiorAssert.py index 2bf1108cdbb..ccf4d61f222 100644 --- a/lldb/test/functionalities/inferior-assert/TestInferiorAssert.py +++ b/lldb/test/functionalities/inferior-assert/TestInferiorAssert.py @@ -20,7 +20,7 @@ class AssertingInferiorTestCase(TestBase): self.inferior_asserting() @expectedFailureWindows("llvm.org/pr21793: need to implement support for detecting assertion / abort on Windows") - @expectedFailureAndroid(api_levels=range(16 + 1)) # b.android.com/179836 + @expectedFailureAndroid(api_levels=list(range(16 + 1))) # b.android.com/179836 def test_inferior_asserting_register(self): """Test that lldb reliably reads registers from the inferior after asserting (command).""" self.build() @@ -58,7 +58,7 @@ class AssertingInferiorTestCase(TestBase): lldbutil.run_break_set_by_file_and_line (self, "main.c", line, num_expected_locations=1, loc_exact=True) def check_stop_reason(self): - if matchAndroid(api_levels=range(1, 16+1))(self): + if matchAndroid(api_levels=list(range(1, 16+1)))(self): # On android until API-16 the abort() call ended in a sigsegv instead of in a sigabrt stop_reason = 'stop reason = signal SIGSEGV' else: diff --git a/lldb/test/functionalities/inferior-crashing/TestInferiorCrashing.py b/lldb/test/functionalities/inferior-crashing/TestInferiorCrashing.py index 3e79c777122..ad908f9dc4f 100644 --- a/lldb/test/functionalities/inferior-crashing/TestInferiorCrashing.py +++ b/lldb/test/functionalities/inferior-crashing/TestInferiorCrashing.py @@ -47,7 +47,7 @@ class CrashingInferiorTestCase(TestBase): @expectedFailureFreeBSD('llvm.org/pr24939') @expectedFailureWindows("llvm.org/pr24778") - @expectedFailureAndroid(archs=['aarch64'], api_levels=range(21 + 1)) # No eh_frame for sa_restorer + @expectedFailureAndroid(archs=['aarch64'], api_levels=list(range(21 + 1))) # No eh_frame for sa_restorer def test_inferior_crashing_step_after_break(self): """Test that lldb functions correctly after stepping through a crash.""" self.build() diff --git a/lldb/test/functionalities/inferior-crashing/recursive-inferior/TestRecursiveInferior.py b/lldb/test/functionalities/inferior-crashing/recursive-inferior/TestRecursiveInferior.py index efc857d8a24..05af075a986 100644 --- a/lldb/test/functionalities/inferior-crashing/recursive-inferior/TestRecursiveInferior.py +++ b/lldb/test/functionalities/inferior-crashing/recursive-inferior/TestRecursiveInferior.py @@ -47,7 +47,7 @@ class CrashingRecursiveInferiorTestCase(TestBase): @expectedFailureFreeBSD('llvm.org/pr24939') @expectedFailureWindows("llvm.org/pr24778") - @expectedFailureAndroid(archs=['aarch64'], api_levels=range(21 + 1)) # No eh_frame for sa_restorer + @expectedFailureAndroid(archs=['aarch64'], api_levels=list(range(21 + 1))) # No eh_frame for sa_restorer def test_recursive_inferior_crashing_step_after_break(self): """Test that lldb functions correctly after stepping through a crash.""" self.build() |

