]> Cypherpunks repositories - gostls13.git/commit
os/exec: post-process lsof output on Android.
authorHyang-Ah (Hana) Kim <hyangah@gmail.com>
Tue, 24 Mar 2015 20:42:34 +0000 (16:42 -0400)
committerHyang-Ah Hana Kim <hyangah@gmail.com>
Wed, 25 Mar 2015 00:34:37 +0000 (00:34 +0000)
commit41d58c3739e7a0e45542423519e0ebbdce27edda
tree78ba5489f604227e7a182f525ea08fa8b01596d0
parent4d54f27b35d4d6849b37daf09a4babc5ddc5117b
os/exec: post-process lsof output on Android.

lsof is used to inspect the open file desciptors in exec_test.go.
In order to limit the output of lsof to the tested process, the tests use
lsof with the -p option, but the version of lsof in android seems to ignore
it. This change adds a post-processing step to filter out irrelevant entries.

Fixes golang/go#10206.

Change-Id: Ia789b8f5e1e9b95c7b55deac92d0d1fbf3ee74fb
Reviewed-on: https://go-review.googlesource.com/8025
Reviewed-by: David Crawshaw <crawshaw@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/os/exec/exec_test.go