1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 06:57:45 +00:00

LibC+Tests: Simplify getpwuid_r() and getpwnam_r() and add tests

These functions are now implemented in terms of getpwent_r() which
allows us to remove two FIXMEs about global variable shenanigans.

I'm also adding tests for both APIs. :^)
This commit is contained in:
Andreas Kling 2022-11-17 20:43:42 +01:00
parent cc189ce0f3
commit 524baa29e8
3 changed files with 135 additions and 85 deletions

View file

@ -20,6 +20,7 @@ set(TEST_SOURCES
TestPThreadPriority.cpp
TestPthreadSpinLocks.cpp
TestPthreadRWLocks.cpp
TestPwd.cpp
TestQsort.cpp
TestRaise.cpp
TestRealpath.cpp