Skip to content

Commit

Permalink
Check for st_[am]tim in fileops/generic tests
Browse files Browse the repository at this point in the history
  • Loading branch information
xaizek committed May 9, 2016
1 parent ea6e8b5 commit e768cd1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/fileops/generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,10 @@ perform_merge(int op)
#ifndef _WIN32
{
assert_success(os_stat("second/nested1", &dst));
#ifndef HAVE_STRUCT_STAT_ST_MTIM
#define st_atim st_atime
#define st_mtim st_mtime
#endif
assert_success(memcmp(&src.st_atim, &dst.st_atim, sizeof(src.st_atim)));
assert_success(memcmp(&src.st_mtim, &dst.st_mtim, sizeof(src.st_mtim)));
assert_success(memcmp(&src.st_mode, &dst.st_mode, sizeof(src.st_mode)));
Expand Down

0 comments on commit e768cd1

Please sign in to comment.