Index: base/process_util_unittest.cc |
=================================================================== |
--- base/process_util_unittest.cc (revision 7931) |
+++ base/process_util_unittest.cc (working copy) |
@@ -159,11 +159,13 @@ |
} |
} |
+ // InitLogging always opens a file at startup. |
+ int expected_num_open_fds = 1; |
#if defined(OS_LINUX) |
// On Linux, '/etc/localtime' is opened before the test's main() enters. |
- const int expected_num_open_fds = 1; |
+ expected_num_open_fds += 1; |
+#endif // defined(OS_LINUX) |
num_open_files -= expected_num_open_fds; |
-#endif // defined(OS_LINUX) |
write(write_pipe, &num_open_files, sizeof(num_open_files)); |
close(write_pipe); |