Fix a glitch in processing timeouts in test execution

Tests on Linux have been failing with the error message "The process
must exit before getting the requested information".  This is probably
due to improper handling of timeout events.
(cherry picked from commit 7c2cd6c127b93660b9430c81861bb4913a589cac on
develop)

Change-Id: I7b0e634eb5964d582f48ad4f4b0e30c07d4c0b0a