Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4580)

Unified Diff: chrome/common/file_descriptor_set_unittest.cc

Issue 100225: POSIX: Add a macro for handling EINTR. (Closed)
Patch Set: ... Created 11 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/file_descriptor_set_posix.cc ('k') | chrome/common/ipc_channel_posix.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/file_descriptor_set_unittest.cc
diff --git a/chrome/common/file_descriptor_set_unittest.cc b/chrome/common/file_descriptor_set_unittest.cc
index 89144a55983a41a4b9ae69c7c26f070643de730d..ca7f0429de0a7df37c6a78e80c16f7ac7f292dac 100644
--- a/chrome/common/file_descriptor_set_unittest.cc
+++ b/chrome/common/file_descriptor_set_unittest.cc
@@ -8,6 +8,7 @@
#include <fcntl.h>
#include "base/basictypes.h"
+#include "base/eintr_wrappers.h"
#include "chrome/common/file_descriptor_set_posix.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -140,8 +141,8 @@ TEST(FileDescriptorSet, DontClose) {
const int duped = dup(fd);
ASSERT_GE(duped, 0);
- close(duped);
- close(fd);
+ HANDLE_EINTR(close(duped));
+ HANDLE_EINTR(close(fd));
}
TEST(FileDescriptorSet, DoClose) {
@@ -153,5 +154,5 @@ TEST(FileDescriptorSet, DoClose) {
const int duped = dup(fd);
ASSERT_EQ(duped, -1);
- close(fd);
+ HANDLE_EINTR(close(fd));
}
« no previous file with comments | « chrome/common/file_descriptor_set_posix.cc ('k') | chrome/common/ipc_channel_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698