test: use UV_TTY_MODE_* values in tty test

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é <saghul@gmail.com>
This commit is contained in:
Ben Noordhuis 2015-03-11 15:13:48 +01:00
parent 868700952b
commit 25d4abbabb

View File

@ -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! */