Use futimens() on FreeBSD
All of the supported FreeBSD versions have futimens()
, so use that in the code path as well.
The non-ns code path in file_unix.cpp
function FileProtocol::copy()
loses the microseconds because those are set explicitly to 0, and the autotests will fail.
While here, add a test that checks for sub-second accuracy of stat()
and the Qt counterparts (all of which pass on FreeBSD, which led to checking the code paths in copy()
instead.