Merge changes I6a842960,If618c26b

* changes:
  adb: add `adb shell exit 42` stress test.
  adb: improve socket tests.