]> granicus.if.org Git - strace/commitdiff
tests/ioctl: workaround glibc ioctl wrapper on powerpc
authorDmitry V. Levin <ldv@altlinux.org>
Mon, 16 Nov 2015 01:53:43 +0000 (01:53 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Mon, 16 Nov 2015 03:08:41 +0000 (03:08 +0000)
* tests/ioctl.c (main) [POWERPC] Disable TCGETS test.

tests/ioctl.c

index 7882140f8443cb6c8c350e427c11adaffd56bb7b..f58fad969cf217dc6a9122debd0dbd525f3ae715 100644 (file)
 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)"