From 25d4abbabb37bf450af098db551005bf028a2c73 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Wed, 11 Mar 2015 15:13:48 +0100 Subject: [PATCH] test: use UV_TTY_MODE_* values in tty test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The UV_TTY_MODE_* enumeration values were introduced in commit 025602d ("tty: implement binary I/O terminal mode") but the test was not updated to use them. This commit rectifies that. PR-URL: https://github.com/libuv/libuv/pull/259 Reviewed-By: Saúl Ibarra Corretgé --- test/test-tty.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test-tty.c b/test/test-tty.c index 7e1ce266..cfcb7702 100644 --- a/test/test-tty.c +++ b/test/test-tty.c @@ -111,11 +111,11 @@ TEST_IMPL(tty) { ASSERT(height > 10); /* Turn on raw mode. */ - r = uv_tty_set_mode(&tty_in, 1); + r = uv_tty_set_mode(&tty_in, UV_TTY_MODE_RAW); ASSERT(r == 0); /* Turn off raw mode. */ - r = uv_tty_set_mode(&tty_in, 0); + r = uv_tty_set_mode(&tty_in, UV_TTY_MODE_NORMAL); ASSERT(r == 0); /* TODO check the actual mode! */