From: Dmitry V. Levin Date: Mon, 16 Nov 2015 01:53:43 +0000 (+0000) Subject: tests/ioctl: workaround glibc ioctl wrapper on powerpc X-Git-Tag: v4.11~149 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0f8af611542e9bfad43c86eb461a39c6ff608180;p=strace tests/ioctl: workaround glibc ioctl wrapper on powerpc * tests/ioctl.c (main) [POWERPC] Disable TCGETS test. --- diff --git a/tests/ioctl.c b/tests/ioctl.c index 7882140f..f58fad96 100644 --- a/tests/ioctl.c +++ b/tests/ioctl.c @@ -31,12 +31,14 @@ int main(void ) { - struct termios tty; uint64_t data = 0; +#ifndef POWERPC + struct termios tty; (void) ioctl(-1, TCGETS, &tty); printf("ioctl(-1, TCGETS, %p)" " = -1 EBADF (Bad file descriptor)\n", &tty); +#endif (void) ioctl(-1, MMTIMER_GETRES, &data); printf("ioctl(-1, MMTIMER_GETRES, %p)"