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.
This commit is contained in:
@@ -690,11 +690,6 @@ code = '''
|
|||||||
lfsp_t lfsp;
|
lfsp_t lfsp;
|
||||||
lfsp_mount(&lfsp, &cfgp) => 0;
|
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;
|
lfsp_unmount(&lfsp) => 0;
|
||||||
'''
|
'''
|
||||||
|
|
||||||
@@ -723,11 +718,6 @@ code = '''
|
|||||||
lfsp_t lfsp;
|
lfsp_t lfsp;
|
||||||
lfsp_mount(&lfsp, &cfgp) => 0;
|
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?
|
// can we list the directories?
|
||||||
lfsp_dir_t dir;
|
lfsp_dir_t dir;
|
||||||
lfsp_dir_open(&lfsp, &dir, "/") => 0;
|
lfsp_dir_open(&lfsp, &dir, "/") => 0;
|
||||||
@@ -792,11 +782,6 @@ code = '''
|
|||||||
lfsp_t lfsp;
|
lfsp_t lfsp;
|
||||||
lfsp_mount(&lfsp, &cfgp) => 0;
|
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?
|
// can we list the files?
|
||||||
lfsp_dir_t dir;
|
lfsp_dir_t dir;
|
||||||
lfsp_dir_open(&lfsp, &dir, "/") => 0;
|
lfsp_dir_open(&lfsp, &dir, "/") => 0;
|
||||||
@@ -882,11 +867,6 @@ code = '''
|
|||||||
lfsp_t lfsp;
|
lfsp_t lfsp;
|
||||||
lfsp_mount(&lfsp, &cfgp) => 0;
|
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?
|
// can we list the directories?
|
||||||
lfsp_dir_t dir;
|
lfsp_dir_t dir;
|
||||||
lfsp_dir_open(&lfsp, &dir, "/") => 0;
|
lfsp_dir_open(&lfsp, &dir, "/") => 0;
|
||||||
@@ -979,11 +959,6 @@ code = '''
|
|||||||
lfsp_t lfsp;
|
lfsp_t lfsp;
|
||||||
lfsp_mount(&lfsp, &cfgp) => 0;
|
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
|
// write another COUNT/2 dirs
|
||||||
for (lfs_size_t i = COUNT/2; i < COUNT; i++) {
|
for (lfs_size_t i = COUNT/2; i < COUNT; i++) {
|
||||||
char name[8];
|
char name[8];
|
||||||
@@ -1061,11 +1036,6 @@ code = '''
|
|||||||
lfsp_t lfsp;
|
lfsp_t lfsp;
|
||||||
lfsp_mount(&lfsp, &cfgp) => 0;
|
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
|
// write half COUNT files
|
||||||
prng = 42;
|
prng = 42;
|
||||||
for (lfs_size_t i = 0; i < COUNT; i++) {
|
for (lfs_size_t i = 0; i < COUNT; i++) {
|
||||||
@@ -1183,11 +1153,6 @@ code = '''
|
|||||||
lfsp_t lfsp;
|
lfsp_t lfsp;
|
||||||
lfsp_mount(&lfsp, &cfgp) => 0;
|
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
|
// write half COUNT files
|
||||||
prng = 42;
|
prng = 42;
|
||||||
for (lfs_size_t i = 0; i < COUNT; i++) {
|
for (lfs_size_t i = 0; i < COUNT; i++) {
|
||||||
|
|||||||
Reference in New Issue
Block a user