Fix PipeClosedWhenNotRedirectedTest.
When checking for a file descriptor open on the child, we now execute a
simple test program that just runs fstat on that file descriptor. This
is more reliable than calling sh on different platforms.
Bug: 26955860
TEST=Ran unittests on edison-eng and Chromium OS.
Change-Id: I5d5d87095564159df1a75e78b0aed29c16bc7eb8
diff --git a/update_engine.gyp b/update_engine.gyp
index a0fc447..40d6314 100644
--- a/update_engine.gyp
+++ b/update_engine.gyp
@@ -457,6 +457,14 @@
'test_http_server.cc',
],
},
+ # Test subprocess helper.
+ {
+ 'target_name': 'test_subprocess',
+ 'type': 'executable',
+ 'sources': [
+ 'test_subprocess.cc',
+ ],
+ },
# Main unittest file.
{
'target_name': 'update_engine_unittests',