aboutsummaryrefslogtreecommitdiffstats
path: root/cpio/test/test_option_a.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpio/test/test_option_a.c')
-rw-r--r--cpio/test/test_option_a.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/cpio/test/test_option_a.c b/cpio/test/test_option_a.c
index 296387777ccf..e96bdf3cab5b 100644
--- a/cpio/test/test_option_a.c
+++ b/cpio/test/test_option_a.c
@@ -71,8 +71,13 @@ test_create(void)
* #ifdef this section out. Most of the test below is
* still valid. */
memset(&times, 0, sizeof(times));
+#if defined(_WIN32) && !defined(CYGWIN)
+ times.actime = 86400;
+ times.modtime = 86400;
+#else
times.actime = 1;
times.modtime = 3;
+#endif
assertEqualInt(0, utime(files[i].name, &times));
/* Record whatever atime the file ended up with. */