diff options
Diffstat (limited to 'tests/test-utimensat.c')
-rw-r--r-- | tests/test-utimensat.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/test-utimensat.c b/tests/test-utimensat.c index de5ae5afe4..e5a3685f5c 100644 --- a/tests/test-utimensat.c +++ b/tests/test-utimensat.c @@ -101,8 +101,12 @@ main (void) ASSERT (utimensat (fd, ".", NULL, 0) == -1); ASSERT (errno == ENOTDIR); { - struct timespec ts[2] = { { Y2K, 0 }, { Y2K, 0 } }; + struct timespec ts[2]; struct stat st; + ts[0].tv_sec = Y2K; + ts[0].tv_nsec = 0; + ts[1].tv_sec = Y2K; + ts[1].tv_nsec = 0; ASSERT (utimensat (dfd, BASE "dir/file", ts, AT_SYMLINK_NOFOLLOW) == 0); ASSERT (stat ("file", &st) == 0); ASSERT (st.st_atime == Y2K); |