summaryrefslogtreecommitdiffstats
path: root/libcxx
diff options
context:
space:
mode:
authorMichal Gorny <mgorny@gentoo.org>2018-12-12 20:20:15 +0000
committerMichal Gorny <mgorny@gentoo.org>2018-12-12 20:20:15 +0000
commite8e635ff5e11f521abb56d8c1ff1f624dc13076e (patch)
tree41b879b08f7f92d0d3974192f39d3b70f9958b0f /libcxx
parent4a641efdc1a41e87a86f92f122d99f309a9ea35c (diff)
downloadbcm5719-llvm-e8e635ff5e11f521abb56d8c1ff1f624dc13076e.tar.gz
bcm5719-llvm-e8e635ff5e11f521abb56d8c1ff1f624dc13076e.zip
[test] [filesystems] Extend FreeBSD tv_sec==-1 workaround to NetBSD
NetBSD also uses tv_sec==-1 as error status indicator, and does not support setting such a value. llvm-svn: 348967
Diffstat (limited to 'libcxx')
-rw-r--r--libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.last_write_time/last_write_time.pass.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.last_write_time/last_write_time.pass.cpp b/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.last_write_time/last_write_time.pass.cpp
index 7a17f957700..11152e6ab1d 100644
--- a/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.last_write_time/last_write_time.pass.cpp
+++ b/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.last_write_time/last_write_time.pass.cpp
@@ -427,7 +427,7 @@ TEST_CASE(set_last_write_time_dynamic_env_test)
epoch_time - Minutes(3) - Sec(42) - SubSec(17);
// FreeBSD has a bug in their utimes implementation where the time is not update
// when the number of seconds is '-1'.
-#if defined(__FreeBSD__)
+#if defined(__FreeBSD__) || defined(__NetBSD__)
const file_time_type just_before_epoch_time =
epoch_time - Sec(2) - SubSec(17);
#else
OpenPOWER on IntegriCloud