From 413329eb3521cda5ffe2682c32bafd854ae94d92 Mon Sep 17 00:00:00 2001 From: Michal Gorny Date: Wed, 12 Dec 2018 20:20:15 +0000 Subject: [PATCH] [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. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@348967 91177308-0d34-0410-b5e6-96231b3b80d8 --- .../fs.op.funcs/fs.op.last_write_time/last_write_time.pass.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/std/input.output/filesystems/fs.op.funcs/fs.op.last_write_time/last_write_time.pass.cpp b/test/std/input.output/filesystems/fs.op.funcs/fs.op.last_write_time/last_write_time.pass.cpp index 7a17f9577..11152e6ab 100644 --- a/test/std/input.output/filesystems/fs.op.funcs/fs.op.last_write_time/last_write_time.pass.cpp +++ b/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