Skip to content

Commit

Permalink
Removed previous-version lfsp_fs_stat checks in test_compat
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
geky committed Jun 7, 2023
1 parent a7ccc1d commit a51be18
Showing 1 changed file with 0 additions and 35 deletions.
35 changes: 0 additions & 35 deletions tests/test_compat.toml
Expand Up @@ -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;
'''

Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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];
Expand Down Expand Up @@ -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++) {
Expand Down Expand Up @@ -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++) {
Expand Down

0 comments on commit a51be18

Please sign in to comment.