Navigation Menu

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

Commit

Permalink
test: remove futimes sub-second precision checks, unreliable on freebsd
Browse files Browse the repository at this point in the history
  • Loading branch information
bnoordhuis committed Aug 17, 2011
1 parent 236b96a commit 2dae0c9
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions test/test-fs.c
Expand Up @@ -424,14 +424,10 @@ static void check_utime(const char* path, double atime, double mtime) {
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 */
ASSERT(s->st_mtim.tv_sec == mtime);
ASSERT(s->st_mtim.tv_nsec == 0); /* FIXME check sub-second precision */
#endif

uv_fs_req_cleanup(&req);
Expand Down

0 comments on commit 2dae0c9

Please sign in to comment.