aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2016-08-07 17:35:10 -0400
committerGitHub <noreply@github.com>2016-08-07 17:35:10 -0400
commitf1eb3031871b380162cf6407405367d707e7d9cc (patch)
tree9a32d109dcfd6dbeff18ed38a80dbd079909c2bf /test
parent6050d3f15dea67759afa4bcc68a3cd9feeaabe98 (diff)
parent6bcaea7c41e82a3435d903c6f99fd791cc343059 (diff)
downloadrneovim-f1eb3031871b380162cf6407405367d707e7d9cc.tar.gz
rneovim-f1eb3031871b380162cf6407405367d707e7d9cc.tar.bz2
rneovim-f1eb3031871b380162cf6407405367d707e7d9cc.zip
Merge #5130 from equalsraf/tb-appveyor
Enable MSYS/MinGW builds in Appveyor
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;