History log of /external/libbrillo/brillo/unittest_utils.cc
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
992e42977bb39c34360e5224a85115a1a9f834dc 12-Dec-2015 Alex Deymo <deymo@google.com> Fix Process unittests.

The unused file descriptor tests were flaky because they had a 10ms
sleep were the child process was supposed to run. While 10ms is
typically enough for that, our builders run at a high load at 10ms
could not be enough.

This patch uses a different approach to test the same behavior by
checking if the file descriptors are available from the same child
process. It also fixes a fd leak by used a ScopedPipe.

Bug: None
TEST=FEATURES=test emerge-link libbrillo

Change-Id: I53d529c5dbebbfa1af4cc858d76a200d3344d3ff
/external/libbrillo/brillo/unittest_utils.cc