testSystemTools: apply root-check to more systems

The TestFileAccess test fails on FreeBSD (probably others) with this message:

TestFileAccess incorrectly indicated that this is a writable file

if the test is run as root; apply the same cop-out as on Linux and don't run it when testing as root.

Patch-by: @adridg

Merge request reports

Loading