From 0df9fa8ab86c4474dc14d679df5902338f05a9c2 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Fri, 15 Nov 2013 09:23:11 +0100 Subject: tests: Remove ioctl tty test it doesn't work in ctest. --- tests/testsuite.c | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/tests/testsuite.c b/tests/testsuite.c index 8ad8e95..880068b 100644 --- a/tests/testsuite.c +++ b/tests/testsuite.c @@ -77,22 +77,6 @@ static void test_swrap_ioctl_sock(void **state) assert_int_equal(rc, 0); } -static void test_swrap_ioctl_tty(void **state) -{ - struct winsize ws; - int rc; - - (void) state; /* unused */ - - memset(&ws, 0, sizeof(struct winsize)); - - rc = ioctl(0, TIOCGWINSZ, &ws); - assert_int_equal(rc, 0); - - assert_true(ws.ws_col > 1); - assert_true(ws.ws_row > 1); -} - static void test_swrap_socket(void **state) { int rc; @@ -134,7 +118,6 @@ int main(void) { const UnitTest tests[] = { unit_test_setup_teardown(test_swrap_socket, setup, teardown), unit_test_setup_teardown(test_swrap_ioctl_sock, setup, teardown), - unit_test_setup_teardown(test_swrap_ioctl_tty, setup, teardown), }; rc = run_tests(tests); -- cgit