OSDN Git Service

imgdiag: Fix rarely flaky imgdiag_test.
authorIgor Murashkin <iam@google.com>
Thu, 3 Dec 2015 18:47:08 +0000 (10:47 -0800)
committerIgor Murashkin <iam@google.com>
Thu, 3 Dec 2015 19:04:46 +0000 (11:04 -0800)
commitddd2172fd9034c687f249be728810ad29bcdc654
tree7c86a1c5a2464fc367344fd4204e928a052ae91b
parentf33ea7911dadab2e49c4634cb1763f0526047e89
imgdiag: Fix rarely flaky imgdiag_test.

Don't hardcode pid as we could get unlucky and a real process
could have a pid of 12345.

This prevents false negatives by making the PID always be out-of-range
for valid kernel PIDs.

Change-Id: I8e8ae5c20a39e95b27b35905d5273c77dbf701f9
imgdiag/imgdiag_test.cc