[Lldb-commits] [PATCH] D128042: [lldb] [test] Fix test_platform_file_fstat to account for negative ints
Michał Górny via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Mon Jun 20 10:42:55 PDT 2022
This revision was automatically updated to reflect the committed changes.
Closed by commit rGd3292c4ba0ce: [lldb] [test] Fix test_platform_file_fstat to account for negative ints (authored by mgorny).
Herald added a project: LLDB.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D128042/new/
https://reviews.llvm.org/D128042
Files:
lldb/test/API/tools/lldb-server/TestGdbRemotePlatformFile.py
Index: lldb/test/API/tools/lldb-server/TestGdbRemotePlatformFile.py
===================================================================
--- lldb/test/API/tools/lldb-server/TestGdbRemotePlatformFile.py
+++ lldb/test/API/tools/lldb-server/TestGdbRemotePlatformFile.py
@@ -32,11 +32,11 @@
def uint32_or_zero(x):
- return x if x < 2**32 else 0
+ return x if x < 2**32 and x >= 0 else 0
def uint32_or_max(x):
- return x if x < 2**32 else 2**32 - 1
+ return x if x < 2**32 and x >= 0 else 2**32 - 1
def uint32_trunc(x):
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D128042.438444.patch
Type: text/x-patch
Size: 541 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20220620/259113f2/attachment.bin>
More information about the lldb-commits
mailing list