Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Fix test-fs.c for darwin.

  • Loading branch information...
erickt authored and ry committed Sep 7, 2011
1 parent fe6157b commit 1a43429774a657ca5ad4e5879c4d60a47841b676
Showing with 5 additions and 0 deletions.
  1. +5 −0 test/test-fs.c
@@ -423,6 +423,11 @@ static void check_utime(const char* path, double atime, double mtime) {
#if _WIN32
ASSERT(s->st_atime == atime);
ASSERT(s->st_mtime == mtime);
#elif !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)
ASSERT(s->st_atimespec.tv_sec == atime);
ASSERT(s->st_atimespec.tv_nsec == 0); /* FIXME check sub-second precision */
ASSERT(s->st_mtimespec.tv_sec == mtime);
ASSERT(s->st_mtimespec.tv_nsec == 0); /* FIXME check sub-second precision */
#else
ASSERT(s->st_atim.tv_sec == atime);
ASSERT(s->st_atim.tv_nsec == 0); /* FIXME check sub-second precision */

0 comments on commit 1a43429

Please sign in to comment.
You can’t perform that action at this time.