From: James Cowgill Date: Thu, 11 Aug 2016 16:33:03 +0000 (+0000) Subject: tests/fcntl.c: fix fcntl test on mips64 X-Git-Tag: v4.14~205 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a9147beeb0c28d5fb534fa751c250d52486f50cd;p=strace tests/fcntl.c: fix fcntl test on mips64 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. --- diff --git a/tests/fcntl.c b/tests/fcntl.c index 08bac660..4ae5beb7 100644 --- a/tests/fcntl.c +++ b/tests/fcntl.c @@ -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