commit | f933751ef840e8c494ad166b483e39545f796fcc | [log] [tgz] |
---|---|---|
author | Josh Gao <jmgao@google.com> | Fri Mar 15 14:49:25 2019 -0700 |
committer | Josh Gao <jmgao@google.com> | Fri Mar 15 14:54:32 2019 -0700 |
tree | 162058324924220e39cc3bbde9b6d4e98aaedc9d | |
parent | 51564e234bef6aac37a221f1a5dcbb409f2f6883 [diff] |
adb: avoid sign extension of shell return code. Windows has int32_t return codes, which results in return codes 128-255 being sign extended into a negative number. Manually truncate the return codes we get to preserve their values. Test: test_device.py on windows Change-Id: If41d6d469350301704f6ecff72ad17b412db3e04