summaryrefslogtreecommitdiff
path: root/base/errors_unix.cpp
diff options
context:
space:
mode:
authorSpencer Low <CompareAndSwap@gmail.com>2015-08-28 01:07:30 -0700
committerElliott Hughes <enh@google.com>2015-08-28 11:38:28 -0700
commitd8cce1817b02c23124e85b138d85acd8fc24a757 (patch)
treeede0ae1569dc7b2d7546ba1ccd027be2fc2b184a /base/errors_unix.cpp
parent2c58af52232f0c8b4ab09d75eba66d1283805cab (diff)
adb: fix adb install and adb push exit code, error handling, unittest
adb push was not returning a bad exit code when write_data_file() or write_data_link() failed. I encountered this when running the unittest on Windows which can get into situations where stat() succeeds, but open() fails due to pre-existing exclusive file access (which typically doesn't exist on unix). The same code is used by adb install, so this also fixes its error handling. Fixed some fd leaks and propagation of errors when reading a file. Fixed a unittest to close temp files before reading them. Change-Id: Ieba0026fa4c79eb0484676e4f2faaac9603ef584 Signed-off-by: Spencer Low <CompareAndSwap@gmail.com>
Diffstat (limited to 'base/errors_unix.cpp')
0 files changed, 0 insertions, 0 deletions