aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-10-23 10:11:02 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-10-23 10:12:23 +0200
commit606ca3c3a8db01f166066cd5c1b17f0d376fbb39 (patch)
treedebad7f85d01aa126042141d2bbe3498e72ab31d /tests
parentfe19ebb094c5c31533a23c6ab24317aae10ac230 (diff)
Fix the fstree_init test to account for defaults from SOURCE_DATE_EPOCH
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
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));