Browse files

[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.
  • Loading branch information...
mgorny committed Dec 12, 2018
1 parent ca1ca0e commit d5440ab36bc47f72c9c2dfdeffaf8d75c66422c1
@@ -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);

0 comments on commit d5440ab

Please sign in to comment.