Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix test-fs.c for darwin.
  • Loading branch information
erickt authored and ry committed Sep 8, 2011
1 parent fe6157b commit 1a43429
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/test-fs.c
Expand Up @@ -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 */
Expand Down

0 comments on commit 1a43429

Please sign in to comment.