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

Unified Diff: native_client_sdk/src/tests/nacl_io_test/mount_node_tty_test.cc

Issue 73083005: [NaCl SDK] Enable linux host build for nacl_io and nacl_io_tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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
Index: native_client_sdk/src/tests/nacl_io_test/mount_node_tty_test.cc
diff --git a/native_client_sdk/src/tests/nacl_io_test/mount_node_tty_test.cc b/native_client_sdk/src/tests/nacl_io_test/mount_node_tty_test.cc
index 02adb153ab690a5f2a6fba25704e786b1560deb2..bd27fae3476824c2afdebbe1fd619b0ab0c06275 100644
--- a/native_client_sdk/src/tests/nacl_io_test/mount_node_tty_test.cc
+++ b/native_client_sdk/src/tests/nacl_io_test/mount_node_tty_test.cc
@@ -219,9 +219,9 @@ TEST_F(TtyTest, TtyICANON) {
ASSERT_EQ(IsReadable(tty_fd), 0);
struct termios tattr;
- tcgetattr(tty_fd, &tattr);
+ ki_tcgetattr(tty_fd, &tattr);
tattr.c_lflag &= ~(ICANON|ECHO); /* Clear ICANON and ECHO. */
- tcsetattr(tty_fd, TCSAFLUSH, &tattr);
+ ki_tcsetattr(tty_fd, TCSAFLUSH, &tattr);
ASSERT_EQ(IsReadable(tty_fd), 0);
@@ -234,7 +234,7 @@ TEST_F(TtyTest, TtyICANON) {
// Read byte from tty.
char c;
- ASSERT_EQ(1, read(tty_fd, &c, 1));
+ ASSERT_EQ(1, ki_read(tty_fd, &c, 1));
ASSERT_EQ('a', c);
ASSERT_EQ(IsReadable(tty_fd), 0);

Powered by Google App Engine
This is Rietveld 408576698