aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorRui Abreu Ferreira <raf-ep@gmx.com>2015-12-20 23:11:23 +0000
committerRui Abreu Ferreira <raf-ep@gmx.com>2016-08-07 21:57:29 +0100
commit25ec29d4e145f5b3b86d28e5d401c2d913fadded (patch)
tree30231320ccea329a89dff469c67982915dc59ce0 /test
parent9da4d1b4cba7fab0636b8b48e48ff4e508ceb853 (diff)
downloadrneovim-25ec29d4e145f5b3b86d28e5d401c2d913fadded.tar.gz
rneovim-25ec29d4e145f5b3b86d28e5d401c2d913fadded.tar.bz2
rneovim-25ec29d4e145f5b3b86d28e5d401c2d913fadded.zip
Windows: Fix functionaltest fixtures
Diffstat (limited to 'test')
-rw-r--r--test/functional/fixtures/tty-test.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/functional/fixtures/tty-test.c b/test/functional/fixtures/tty-test.c
index 40ba131003..ca905ce65e 100644
--- a/test/functional/fixtures/tty-test.c
+++ b/test/functional/fixtures/tty-test.c
@@ -31,12 +31,14 @@ static void walk_cb(uv_handle_t *handle, void *arg) {
}
}
+#ifndef WIN32
static void sigwinch_handler(int signum)
{
int width, height;
uv_tty_get_winsize(&tty, &width, &height);
fprintf(stderr, "rows: %d, cols: %d\n", height, width);
}
+#endif
// static void sigwinch_cb(uv_signal_t *handle, int signum)
// {
@@ -135,6 +137,7 @@ int main(int argc, char **argv)
uv_tty_set_mode(&tty, UV_TTY_MODE_RAW);
tty.data = &interrupted;
uv_read_start((uv_stream_t *)&tty, alloc_cb, read_cb);
+#ifndef WIN32
struct sigaction sa;
sigemptyset(&sa.sa_mask);
sa.sa_flags = 0;
@@ -144,6 +147,7 @@ int main(int argc, char **argv)
// uv_signal_init(uv_default_loop(), &sigwinch_watcher);
// sigwinch_watcher.data = &tty;
// uv_signal_start(&sigwinch_watcher, sigwinch_cb, SIGWINCH);
+#endif
uv_run(uv_default_loop(), UV_RUN_DEFAULT);
return 0;