[libcxx] Fix last_write_time test for filesystems that don't support very small times.
authorVolodymyr Sapsai <vsapsai@apple.com>
Wed, 28 Feb 2018 23:27:40 +0000 (23:27 +0000)
committerVolodymyr Sapsai <vsapsai@apple.com>
Wed, 28 Feb 2018 23:27:40 +0000 (23:27 +0000)
commitff9595a002d48a4470f0518c26920fab39e2f62c
tree80bfc18948671de39d83a9a8b37240898016c685
parent67d6908f5901d720b5bc5225076e7353c833d167
[libcxx] Fix last_write_time test for filesystems that don't support very small times.

APFS minimum supported file write time is -2^63 nanoseconds, which doesn't go
as far as `file_time_type::min()` that is equal to -2^63 microseconds on macOS.

This change doesn't affect filesystems that support `file_time_type` range only
for in-memory file time representation but not for on-disk representation. Such
filesystems are considered as `SupportsMinTime`.

rdar://problem/35865151

Reviewers: EricWF, Hahnfeld

Subscribers: jkorous-apple, mclow.lists, cfe-commits, christof

Differential Revision: https://reviews.llvm.org/D42755

llvm-svn: 326383
libcxx/test/std/experimental/filesystem/fs.op.funcs/fs.op.last_write_time/last_write_time.pass.cpp