nuttx-apps/testing/testsuites/kernel
Xiang Xiao 5ead824fff apps: Fix O_ACCMODE bitmask checks after Linux flag alignment
After aligning NuttX open() flag constants with Linux (O_RDONLY=0,
O_WRONLY=1, O_RDWR=2), code that used '(flags & O_RDONLY)' or
'(flags & O_WRONLY)' as a bitmask check is broken because O_RDONLY
is now 0.  Fix by using '(flags & O_ACCMODE)' comparisons instead.

  - usrsocktest: replace 'flags & O_RDWR' with 'flags & O_ACCMODE'
    in fcntl F_GETFL assertions
  - dd: verify mode used '(oflags & O_RDONLY)' to detect verify;
    replace with '(oflags & O_ACCMODE) == O_RDWR'
  - dpopen: replace '(oflag & O_RDWR) == O_RDWR' with
    '(oflag & O_ACCMODE) == O_RDWR'
  - usbmsc: replace 'flags & O_WRONLY' with
    '(flags & O_ACCMODE) == O_RDONLY'
  - fcntl_test: replace '(flags & O_WRONLY) == 0' with
    '(flags & O_ACCMODE) == O_RDONLY'

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2026-06-30 12:19:58 -04:00
..
fs apps: Fix additional open() arguments. 2026-05-22 13:39:04 +08:00
mm Remove unused header files across multiple source files 2025-01-10 21:42:00 +08:00
mutex Remove unused header files across multiple source files 2025-01-10 21:42:00 +08:00
pthread Remove unused header files across multiple source files 2025-01-10 21:42:00 +08:00
sched test/mutex: fix mutex testcases. 2026-01-22 19:53:39 +08:00
socket testing: fix net case bug 2026-01-22 19:48:57 +08:00
syscall apps: Fix O_ACCMODE bitmask checks after Linux flag alignment 2026-06-30 12:19:58 -04:00
time !apps: drop redundant casts on tv_sec/tv_nsec and fix printf formats 2026-05-22 13:38:25 +08:00
CMakeLists.txt testing/testsuites: add cmake support 2025-12-23 09:12:02 -03:00