]> granicus.if.org Git - strace/commitdiff
tests/fcntl.c: fix fcntl test on mips64
authorJames Cowgill <james410@cowgill.org.uk>
Thu, 11 Aug 2016 16:33:03 +0000 (16:33 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Thu, 11 Aug 2016 16:48:12 +0000 (16:48 +0000)
On mips64 the F_GETLK and F_SETLKW64 constants have identical values which
causes the "wrong" constant to be printed by strace.

tests/fcntl.c (test_flock64): Do not test F_SETLKW64 on mips64.

tests/fcntl.c

index 08bac6601fed571a698b24201c2cde30d6d1db48..4ae5beb7e60062f3fa395bb0172c1cf5b7af6447 100644 (file)
@@ -59,7 +59,10 @@ test_flock64(void)
 #if !defined(F_GETOWN_EX) || F_GETOWN_EX != F_SETLK64
        TEST_FLOCK64_EINVAL(F_SETLK64);
 #endif
+/* F_GETLK and F_SETLKW64 have conflicting values on mips64 */
+#if !defined(__mips64) || F_GETLK != F_SETLKW64
        TEST_FLOCK64_EINVAL(F_SETLKW64);
+#endif
 #if !defined(F_SETOWN_EX) || F_SETOWN_EX != F_GETLK64
        TEST_FLOCK64_EINVAL(F_GETLK64);
 #endif