summaryrefslogtreecommitdiffstats
path: root/hci/test/hci_hal_mct_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'hci/test/hci_hal_mct_test.cpp')
-rw-r--r--hci/test/hci_hal_mct_test.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/hci/test/hci_hal_mct_test.cpp b/hci/test/hci_hal_mct_test.cpp
index 911aabcfd..a857629b3 100644
--- a/hci/test/hci_hal_mct_test.cpp
+++ b/hci/test/hci_hal_mct_test.cpp
@@ -186,23 +186,23 @@ static void expect_socket_data(int fd, char *data) {
fd_set read_fds;
FD_ZERO(&read_fds);
FD_SET(fd, &read_fds);
- select(fd + 1, &read_fds, NULL, NULL, NULL);
+ TEMP_FAILURE_RETRY(select(fd + 1, &read_fds, NULL, NULL, NULL));
char byte;
- read(fd, &byte, 1);
+ TEMP_FAILURE_RETRY(read(fd, &byte, 1));
EXPECT_EQ(data[i], byte);
}
}
static void write_packet(int fd, char *data) {
- write(fd, data, strlen(data));
+ TEMP_FAILURE_RETRY(write(fd, data, strlen(data)));
}
static void write_packet_reentry(int fd, char *data) {
int length = strlen(data);
for (int i = 0; i < length; i++) {
- write(fd, &data[i], 1);
+ TEMP_FAILURE_RETRY(write(fd, &data[i], 1));
semaphore_wait(reentry_semaphore);
}
}