aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/fstree_init.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/fstree_init.c b/tests/fstree_init.c
index ae559dd..5958d49 100644
--- a/tests/fstree_init.c
+++ b/tests/fstree_init.c
@@ -29,7 +29,8 @@ int main(void)
fstree_cleanup(&fs);
assert(fstree_init(&fs, NULL) == 0);
- assert(fs.defaults.st_mtime == 0);
+ assert(fs.defaults.st_mtime == 0 ||
+ fs.defaults.st_mtime == get_source_date_epoch());
assert(fs.defaults.st_uid == 0);
assert(fs.defaults.st_gid == 0);
assert(fs.defaults.st_mode == (S_IFDIR | 0755));