adridg added a comment.
On FreeBSD, `/proc` is not necessarily mounted (it might be a Linuxism). So while I do **have** `/proc`, it's empty because procfs isn't mounted there. If I **do** mount it, then there's the expected list of processes and a curproc symlink. But `/proc/<pid>` doesn't contain a `stat` file .. there's a `status`, though. Let me mess around a bit with that... yes, changing to `status` makes all 6 tests pass. So I'd suggest something like #ifdef Q_OS_FREEBSD QString statusFileName(QStringLiteral("/status")); #else QString statusFileName(QStringLiteral("/stat")); #endif and then later on filename += statusFileName; REPOSITORY R244 KCoreAddons REVISION DETAIL https://phabricator.kde.org/D20007 To: hallas, davidedmundson, broulik Cc: vonreth, adridg, elvisangelaccio, kde-frameworks-devel, michaelh, ngraham, bruns