aboutsummaryrefslogtreecommitdiff
path: root/tests/fstree_init.c
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-07-24 12:35:35 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-07-24 13:46:05 +0200
commit30fbd496a1793b4374873144432f9b7a996a689d (patch)
tree3112554b3c51501ca78b417569003b9f5a065fa0 /tests/fstree_init.c
parent802b43c95ab4d6e44e17d6b81931e0963182c262 (diff)
cleanup: remove atime/ctime processing code
This commit removes all the code for parsing and processing atime/ctime and values and related test code. Caring about those is kind of pointless because squashfs can only store mtime in inodes. The only relevant place is when generating a struct stat from a squashfs inode or an fstree node. Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'tests/fstree_init.c')
-rw-r--r--tests/fstree_init.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/tests/fstree_init.c b/tests/fstree_init.c
index 79033e0..a9428e4 100644
--- a/tests/fstree_init.c
+++ b/tests/fstree_init.c
@@ -18,8 +18,6 @@ int main(void)
assert(fstree_init(&fs, 512, str) == 0);
free(str);
assert(fs.defaults.st_mtime == 1337);
- assert(fs.defaults.st_atime == 1337);
- assert(fs.defaults.st_ctime == 1337);
assert(fs.defaults.st_uid == 1000);
assert(fs.defaults.st_gid == 100);
assert(fs.defaults.st_mode == (S_IFDIR | 0321));
@@ -27,8 +25,6 @@ int main(void)
assert(fstree_init(&fs, 512, NULL) == 0);
assert(fs.defaults.st_mtime == 0);
- assert(fs.defaults.st_atime == 0);
- assert(fs.defaults.st_ctime == 0);
assert(fs.defaults.st_uid == 0);
assert(fs.defaults.st_gid == 0);
assert(fs.defaults.st_mode == (S_IFDIR | 0755));