[Lldb-commits] [lldb] 857700f - [lldb][test] Fix type error when calling random.randrange with 'float' arg (#97328)
via lldb-commits
lldb-commits at lists.llvm.org
Mon Jul 8 03:22:06 PDT 2024
Author: Kendal Harland
Date: 2024-07-08T12:22:03+02:00
New Revision: 857700ff6fb9f9f653c3788445df06db07e7bb59
URL: https://github.com/llvm/llvm-project/commit/857700ff6fb9f9f653c3788445df06db07e7bb59
DIFF: https://github.com/llvm/llvm-project/commit/857700ff6fb9f9f653c3788445df06db07e7bb59.diff
LOG: [lldb][test] Fix type error when calling random.randrange with 'float' arg (#97328)
This test only runs on Windows and fails because we're passing a literal
of the wrong type to random.randrange.
Co-authored-by: kendal <kendal at thebrowser.company>
Added:
Modified:
lldb/packages/Python/lldbsuite/test/tools/lldb-server/lldbgdbserverutils.py
Removed:
################################################################################
diff --git a/lldb/packages/Python/lldbsuite/test/tools/lldb-server/lldbgdbserverutils.py b/lldb/packages/Python/lldbsuite/test/tools/lldb-server/lldbgdbserverutils.py
index 5bd352d3ac549..94376a16d39f6 100644
--- a/lldb/packages/Python/lldbsuite/test/tools/lldb-server/lldbgdbserverutils.py
+++ b/lldb/packages/Python/lldbsuite/test/tools/lldb-server/lldbgdbserverutils.py
@@ -1042,7 +1042,7 @@ def __init__(self):
class Pipe(object):
def __init__(self, prefix):
while True:
- self.name = "lldb-" + str(random.randrange(1e10))
+ self.name = "lldb-" + str(random.randrange(10**10))
full_name = "\\\\.\\pipe\\" + self.name
self._handle = CreateNamedPipe(
full_name,
More information about the lldb-commits
mailing list