test: Add unit tests for chown() with User and Group parameters
authorThomas Jarosch <thomas.jarosch@intra2net.com>
Tue, 30 Dec 2025 13:44:21 +0000 (14:44 +0100)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Wed, 31 Dec 2025 11:11:25 +0000 (12:11 +0100)
commit9c76c7818304be90bf0d7cdc1e31d9a049b5c371
treea7d706799527e4356fe782826fcce2fc4d800044
parent9772731ad9281081b890d5875747bfad1f87ec98
test: Add unit tests for chown() with User and Group parameters

Test the sentinel value handling for uid_t and gid_t types that
was fixed in the previous commit.

Added tests:
- TestChownWithInvalidUid: Verify chown fails when User has invalid uid
- TestChownWithValidUidAndInvalidGid: Verify chown succeeds when gid falls back to valid user.Gid
- TestChownWithUserAndGroupObjects: Verify chown works with valid User and Group objects
test/test_filefunc.cpp