Fix FreeBSD build failures. Update tests for FreeBSD
Fix FreeBSD build failures. Update tests for FreeBSD
Changes
- src/libpsl-native/CMakeLists.txt -> add CMake case for FreeBSD
- src/libpsl-native/src/getcurrentthreadid.cpp -> add FreeBSD case
- src/libpsl-native/src/getppid.cpp -> rework function, add case for FreeBSD
- src/libpsl-native/src/getuserfrompid.cpp -> fix FreeBSD build failure from missing header
- src/libpsl-native/test/ -> add FreeBSD to Apple cases. Apple and FreeBSD use the same parameters for
stat
There are still two test failures related to GetDeviceID. FreeBSD returns a nonsensically high number for /usr/bin/stat -f %d /
Ubuntu 20.04:
frank@buildbot:~$ /usr/bin/stat -c %d /
64768
FreeBSD 13.1:
root@freebsd:~ # /usr/bin/stat -f %d /
2870232080986416670
Reasoning
Current FreeBSD builds fail. This PR resolves it and adds supporting tests
@microsoft-github-policy-service agree
Not sure who I should get code review from / who has write access so I am guessing based on recent PR merges
PTAL @adityapatwardhan
If there is nothing else, then this is ready to merge
@SteveL-MSFT this is the last one I think that's needed for https://github.com/dotnet/runtime/issues/14537 upstream
What else is needed to get this merged?
Any feedback would be great!
/azp run
Azure Pipelines successfully started running 1 pipeline(s).
@Thefrank thank you for your contribution!