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 | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tests/fcntl.c b/tests/fcntl.c
index 08bac66..4ae5beb 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
-- 
2.8.1


------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. http://sdm.link/zohodev2dev
_______________________________________________
Strace-devel mailing list
Strace-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/strace-devel

Reply via email to