| #
6045a753 |
| 16-May-2026 |
Dorjoy Chowdhury <dorjoychy111@gmail.com> |
kselftest/openat2: test for OPENAT2_REGULAR flag
Just a happy path test.
Christian Brauner <brauner@kernel.org> says:
Update OPENAT2_REGULAR fallback define to match upper-32-bit UAPI value. Port
kselftest/openat2: test for OPENAT2_REGULAR flag
Just a happy path test.
Christian Brauner <brauner@kernel.org> says:
Update OPENAT2_REGULAR fallback define to match upper-32-bit UAPI value. Port the test to the kselftest_harness TEST*/FIXTURE framework to match the migrated openat2_test.c, and add a regression test ensuring open()/openat() keep ignoring the internal __O_REGULAR carrier bit.
Signed-off-by: Dorjoy Chowdhury <dorjoychy111@gmail.com> Link: https://patch.msgid.link/20260328172314.45807-3-dorjoychy111@gmail.com Reviewed-by: Aleksa Sarai <aleksa@amutable.com> Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
show more ...
|
| #
215be76e |
| 01-Apr-2026 |
Aleksa Sarai <aleksa@amutable.com> |
selftests: openat2: migrate to kselftest harness
These tests were written in the early days of selftests' TAP support, the more modern kselftest harness is much easier to follow and maintain. The ac
selftests: openat2: migrate to kselftest harness
These tests were written in the early days of selftests' TAP support, the more modern kselftest harness is much easier to follow and maintain. The actual contents of the tests are unchanged by this change. Most of the diff involves switching from the E_* syscall wrappers we previously used to ASSERT_EQ(fn(...), 0) in tests and helper functions.
The first pass of the migration was done using Claude, followed by a manual rework and review.
Assisted-by: Claude:claude-4.6-opus Signed-off-by: Aleksa Sarai <aleksa@amutable.com> Link: https://patch.msgid.link/20260401-openat2-selftests-kunit-v2-4-ad153a07da0c@amutable.com Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
show more ...
|
| #
582c9045 |
| 01-Apr-2026 |
Aleksa Sarai <aleksa@amutable.com> |
selftests: openat2: switch from custom ARRAY_LEN to ARRAY_SIZE
For whatever reason, the original version of the tests used a custom version of ARRAY_SIZE, but ARRAY_SIZE works just as well.
Signed-
selftests: openat2: switch from custom ARRAY_LEN to ARRAY_SIZE
For whatever reason, the original version of the tests used a custom version of ARRAY_SIZE, but ARRAY_SIZE works just as well.
Signed-off-by: Aleksa Sarai <aleksa@amutable.com> Link: https://patch.msgid.link/20260401-openat2-selftests-kunit-v2-3-ad153a07da0c@amutable.com Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
show more ...
|
| #
fe087927 |
| 01-Apr-2026 |
Aleksa Sarai <aleksa@amutable.com> |
selftests: move openat2 tests to selftests/filesystems/
These tests really should've always belonged there, doubly so now that they include a lot of other generic filesystem-related tests.
Suggeste
selftests: move openat2 tests to selftests/filesystems/
These tests really should've always belonged there, doubly so now that they include a lot of other generic filesystem-related tests.
Suggested-by: Christian Brauner <brauner@kernel.org> Signed-off-by: Aleksa Sarai <aleksa@amutable.com> Link: https://patch.msgid.link/20260401-openat2-selftests-kunit-v2-1-ad153a07da0c@amutable.com Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
show more ...
|