test: skip tty test if detected width and height are 0

This happens in certain build environments such as Jenkins if
some tweaking is not performed in the host system.

PR-URL: https://github.com/libuv/libuv/pull/22
This commit is contained in:
Saúl Ibarra Corretgé 2014-12-02 09:24:27 +01:00
parent b5442510c5
commit e157dc9c67

View File

@ -96,6 +96,13 @@ TEST_IMPL(tty) {
printf("width=%d height=%d\n", width, height);
if (width == 0 && height == 0) {
/* Some environments such as containers or Jenkins behave like this
* sometimes */
MAKE_VALGRIND_HAPPY();
return TEST_SKIP;
}
/*
* Is it a safe assumption that most people have terminals larger than
* 10x10?