selftests: openat2: Fix testing failure for O_LARGEFILE flag
authorBaolin Wang <baolin.wang@linux.alibaba.com>
Wed, 25 Aug 2021 01:49:04 +0000 (09:49 +0800)
committerShuah Khan <skhan@linuxfoundation.org>
Wed, 25 Aug 2021 19:46:13 +0000 (13:46 -0600)
commitd538ddb97e066571e4fc58b832f40739621b42bb
tree18d662ebfca4f42afb9ee44bb0a357f4f1505c94
parent2734d6c1b1a089fb593ef6a23d4b70903526fe0c
selftests: openat2: Fix testing failure for O_LARGEFILE flag

The openat2 test suite fails on ARM64 because the definition of
O_LARGEFILE is different on ARM64. Fix the problem by defining
the correct O_LARGEFILE definition on ARM64.

"openat2 unexpectedly returned # 3['.../tools/testing/selftests/openat2']
with 208000 (!= 208000)
not ok 102 openat2 with incompatible flags (O_PATH | O_LARGEFILE) fails
with -22 (Invalid argument)"

Fixed change log to improve formatting and clarity:
Shuah Khan <skhan@linuxfoundation.org>

Signed-off-by: Baolin Wang <baolin.wang@linux.alibaba.com>
Reviewed-by: Aleksa Sarai <cyphar@cyphar.com>
Acked-by: Christian Brauner <christian.brauner@ubuntu.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/openat2/openat2_test.c