From a51be18765ca466f360179492d2bd5066358f87f Mon Sep 17 00:00:00 2001 From: Christopher Haster Date: Tue, 6 Jun 2023 16:09:31 -0500 Subject: [PATCH] Removed previous-version lfsp_fs_stat checks in test_compat This function naturally doesn't exist in the previous version. We should eventually add these calls when we can expect the previous version to support this function, though it's a bit unclear when that should happen. Or maybe not! Maybe this is testing more of the previous version than we really care about. --- tests/test_compat.toml | 35 ----------------------------------- 1 file changed, 35 deletions(-) diff --git a/tests/test_compat.toml b/tests/test_compat.toml index 61bf2aa..4bb45d0 100644 --- a/tests/test_compat.toml +++ b/tests/test_compat.toml @@ -690,11 +690,6 @@ code = ''' lfsp_t lfsp; lfsp_mount(&lfsp, &cfgp) => 0; - // we should be able to read the version using lfs_fs_stat - struct lfsp_fsinfo fsinfo; - lfsp_fs_stat(&lfsp, &fsinfo) => 0; - assert(fsinfo.minor_version == LFS_DISK_VERSION_MINOR); - lfsp_unmount(&lfsp) => 0; ''' @@ -723,11 +718,6 @@ code = ''' lfsp_t lfsp; lfsp_mount(&lfsp, &cfgp) => 0; - // we should be able to read the version using lfs_fs_stat - struct lfs_fsinfo fsinfo; - lfs_fs_stat(&lfs, &fsinfo) => 0; - assert(fsinfo.minor_version == LFS_DISK_VERSION_MINOR); - // can we list the directories? lfsp_dir_t dir; lfsp_dir_open(&lfsp, &dir, "/") => 0; @@ -792,11 +782,6 @@ code = ''' lfsp_t lfsp; lfsp_mount(&lfsp, &cfgp) => 0; - // we should be able to read the version using lfs_fs_stat - struct lfsp_fsinfo fsinfo; - lfsp_fs_stat(&lfsp, &fsinfo) => 0; - assert(fsinfo.minor_version == LFS_DISK_VERSION_MINOR); - // can we list the files? lfsp_dir_t dir; lfsp_dir_open(&lfsp, &dir, "/") => 0; @@ -882,11 +867,6 @@ code = ''' lfsp_t lfsp; lfsp_mount(&lfsp, &cfgp) => 0; - // we should be able to read the version using lfs_fs_stat - struct lfsp_fsinfo fsinfo; - lfsp_fs_stat(&lfsp, &fsinfo) => 0; - assert(fsinfo.minor_version == LFS_DISK_VERSION_MINOR); - // can we list the directories? lfsp_dir_t dir; lfsp_dir_open(&lfsp, &dir, "/") => 0; @@ -979,11 +959,6 @@ code = ''' lfsp_t lfsp; lfsp_mount(&lfsp, &cfgp) => 0; - // we should be able to read the version using lfs_fs_stat - struct lfsp_fsinfo fsinfo; - lfsp_fs_stat(&lfsp, &fsinfo) => 0; - assert(fsinfo.minor_version == LFS_DISK_VERSION_MINOR); - // write another COUNT/2 dirs for (lfs_size_t i = COUNT/2; i < COUNT; i++) { char name[8]; @@ -1061,11 +1036,6 @@ code = ''' lfsp_t lfsp; lfsp_mount(&lfsp, &cfgp) => 0; - // we should be able to read the version using lfs_fs_stat - struct lfsp_fsinfo fsinfo; - lfsp_fs_stat(&lfsp, &fsinfo) => 0; - assert(fsinfo.minor_version == LFS_DISK_VERSION_MINOR); - // write half COUNT files prng = 42; for (lfs_size_t i = 0; i < COUNT; i++) { @@ -1183,11 +1153,6 @@ code = ''' lfsp_t lfsp; lfsp_mount(&lfsp, &cfgp) => 0; - // we should be able to read the version using lfs_fs_stat - struct lfsp_fsinfo fsinfo; - lfsp_fs_stat(&lfsp, &fsinfo) => 0; - assert(fsinfo.minor_version == LFS_DISK_VERSION_MINOR); - // write half COUNT files prng = 42; for (lfs_size_t i = 0; i < COUNT; i++) {