This is an archive of the discontinued LLVM Phabricator instance.

[lldb] [test] Fix test_platform_file_fstat to account for negative ints
ClosedPublic

Authored by mgorny on Jun 17 2022, 3:28 AM.

Details

Summary

Fix test_platform_file_fstat to correctly truncate/max out the expected
value when GDB Remote Serial Protocol specifies a value as an unsigned
integer but the underlying platform type uses a signed integer.

Sponsored by: The FreeBSD Foundation

Diff Detail

Event Timeline

mgorny created this revision.Jun 17 2022, 3:28 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 17 2022, 3:28 AM
Herald added a subscriber: arichardson. · View Herald Transcript
mgorny requested review of this revision.Jun 17 2022, 3:28 AM
krytarowski accepted this revision.Jun 19 2022, 11:35 PM
This revision is now accepted and ready to land.Jun 19 2022, 11:35 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 20 2022, 10:42 AM