summaryrefslogtreecommitdiff
path: root/libcutils/socket_local_server_unix.cpp
diff options
context:
space:
mode:
authorSpencer Low <CompareAndSwap@gmail.com>2015-05-24 23:26:05 -0700
committerSpencer Low <CompareAndSwap@gmail.com>2015-05-24 23:26:05 -0700
commit62b6b4a1eabc477e66a5b5cdaa443667a76d4a94 (patch)
treea5929d927926c80b8a3b3f2b8c52b5fbdb21b143 /libcutils/socket_local_server_unix.cpp
parent7c7895755cf23140f08b7416ceff006dbbf7a411 (diff)
adb: win32: get test_adb.py running and passing 100%
* Use posixpath instead of os.path, because os.path uses '\' instead of '/' when running on Windows. * tempfile.NamedTemporaryFile() does not work right on Windows because it holds the file open, preventing other processes from accessing the same file (https://bugs.python.org/issue14243). To work-around this, use the mechanical transformation described at http://stackoverflow.com/questions/15169101/how-to-create-a-temporary-file-that-can-be-read-by-a-subprocess * Use pipes.quote() to quote path arguments, to prevent C:\foo\bar from turning into C:foobar. * Open files in binary mode with "b". * Fix line-ending test to allow for \r\n on Windows, but to still test for adbd incorrectly sending \r\n (which is then translated to \r\r\n). Change-Id: Ib6ba94b919b747a878ba3ab54a4dea0801f76947 Signed-off-by: Spencer Low <CompareAndSwap@gmail.com>
Diffstat (limited to 'libcutils/socket_local_server_unix.cpp')
0 files changed, 0 insertions, 0 deletions