Subject: | Handle or document the weird root cases |
When writing File::Flat I had some testing issues because sometimes the
module would be tested as root, and sometimes not.
When confirming that a chmod 0000 file is not readable by the current
user, the normal user could correctly not read the file, and the root
user still could, despite permissions.
As a result, I ended up having to skip can_not_read_file type tests when
running as root.
You may want to consider either adjusting tests to handle this issue (by
skipping the expected-false test that root will unexpectedly pass, or at
the very minimum by documenting that the problem exists.
Note, I haven't actually tested you have this problem for sure, but I
thought I should at least bring it up.