X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=direct%2Ftimothy_tests%2Fquick_tests%2Fquick_tests.h;h=27054797defc0c5202914357c59fa577b46b73bc;hp=5fbf67a9511e1faf19cb013d6c8f698550e26177;hb=e0dca71d0430cb8d972a7e64860cdf4410ab084e;hpb=e7d46266c3b860e73cc8c7dc9ec494d2d82c188c;ds=sidebyside diff --git a/direct/timothy_tests/quick_tests/quick_tests.h b/direct/timothy_tests/quick_tests/quick_tests.h index 5fbf67a..2705479 100644 --- a/direct/timothy_tests/quick_tests/quick_tests.h +++ b/direct/timothy_tests/quick_tests/quick_tests.h @@ -37,6 +37,8 @@ #include "test_yaffs_open_EINVAL2.h" #include "test_yaffs_open_ELOOP.h" #include "test_yaffs_open_ELOOP_dir.h" +#include "test_yaffs_open_EROFS.h" +#include "test_yaffs_open_EACCES.h" #include "test_yaffs_close_EBADF.h" @@ -49,11 +51,13 @@ #include "test_yaffs_unlink_ENOENT.h" #include "test_yaffs_unlink_ENOENT2.h" #include "test_yaffs_unlink_ELOOP_dir.h" +#include "test_yaffs_unlink_EROFS.h" #include "test_yaffs_ftruncate.h" #include "test_yaffs_ftruncate_EBADF.h" #include "test_yaffs_ftruncate_EINVAL.h" #include "test_yaffs_ftruncate_big_file.h" +#include "test_yaffs_ftruncate_EROFS.h" #include "test_yaffs_truncate.h" @@ -65,10 +69,12 @@ #include "test_yaffs_truncate_ENOENT2.h" #include "test_yaffs_truncate_ELOOP.h" #include "test_yaffs_truncate_ELOOP_dir.h" +#include "test_yaffs_truncate_EROFS.h" #include "test_yaffs_write.h" #include "test_yaffs_write_EBADF.h" #include "test_yaffs_write_big_file.h" +#include "test_yaffs_write_EROFS.h" #include "test_yaffs_read.h" #include "test_yaffs_read_EBADF.h" @@ -87,6 +93,7 @@ #include "test_yaffs_access_ELOOP_dir.h" #include "test_yaffs_access_ELOOP.h" #include "test_yaffs_access_EROFS.h" +#include "test_yaffs_access_EACCES.h" #include "test_yaffs_stat.h" #include "test_yaffs_stat_ENOENT.h" @@ -98,6 +105,7 @@ #include "test_yaffs_fstat.h" #include "test_yaffs_fstat_EBADF.h" + #include "test_yaffs_chmod.h" #include "test_yaffs_chmod_ENOENT.h" #include "test_yaffs_chmod_ENOTDIR.h" @@ -110,18 +118,22 @@ #include "test_yaffs_fchmod.h" #include "test_yaffs_fchmod_EBADF.h" #include "test_yaffs_fchmod_EINVAL.h" +#include "test_yaffs_fchmod_EROFS.h" #include "test_yaffs_fsync.h" #include "test_yaffs_fsync_EBADF.h" +#include "test_yaffs_fsync_EROFS.h" #include "test_yaffs_fdatasync.h" #include "test_yaffs_fdatasync_EBADF.h" +#include "test_yaffs_fdatasync_EROFS.h" #include "test_yaffs_mkdir.h" #include "test_yaffs_mkdir_EEXIST.h" #include "test_yaffs_mkdir_ENOTDIR.h" #include "test_yaffs_mkdir_ENOENT.h" #include "test_yaffs_mkdir_ELOOP_dir.h" +#include "test_yaffs_mkdir_EROFS.h" #include "test_yaffs_symlink.h" @@ -130,6 +142,7 @@ #include "test_yaffs_symlink_ENOENT.h" #include "test_yaffs_symlink_ENOENT2.h" #include "test_yaffs_symlink_ELOOP_dir.h" +#include "test_yaffs_symlink_EROFS.h" #include "test_yaffs_mount2.h" #include "test_yaffs_mount2_ENODEV.h" @@ -142,6 +155,7 @@ #include "test_yaffs_sync.h" #include "test_yaffs_sync_ENODEV.h" +#include "test_yaffs_sync_EROFS.h" #include "test_yaffs_remount_force_off_read_only_off.h" #include "test_yaffs_remount_force_on_read_only_off.h" @@ -166,7 +180,7 @@ #include "test_yaffs_link_ENOENT3.h" #include "test_yaffs_link_ENOENT4.h" #include "test_yaffs_link_ELOOP_dir.h" - +#include "test_yaffs_link_EROFS.h" #include "test_yaffs_rmdir.h" #include "test_yaffs_rmdir_EBUSY.h" @@ -174,6 +188,7 @@ #include "test_yaffs_rmdir_ENOENT.h" #include "test_yaffs_rmdir_ENOTDIR.h" #include "test_yaffs_rmdir_ELOOP_dir.h" +#include "test_yaffs_rmdir_EROFS.h" #include "test_yaffs_rename.h" #include "test_yaffs_rename_ENOENT.h" @@ -186,6 +201,7 @@ #include "test_yaffs_rename_file_to_dir.h" #include "test_yaffs_rename_EEXISTS.h" #include "test_yaffs_rename_ELOOP_dir.h" +#include "test_yaffs_rename_EROFS.h" #include "test_yaffs_lstat.h" #include "test_yaffs_lstat_ENOENT.h" @@ -193,6 +209,7 @@ #include "test_yaffs_flush.h" #include "test_yaffs_flush_EBADF.h" +#include "test_yaffs_flush_EROFS.h" #include "yaffsfs.h" #include "yaffs_error_converter.h" @@ -230,6 +247,8 @@ test_template test_list[]={ {test_yaffs_open_EINVAL2,test_yaffs_open_EINVAL2_clean,"test_yaffs_open_EINVAL2"}, {test_yaffs_open_ELOOP,test_yaffs_open_ELOOP_clean,"test_yaffs_open_ELOOP"}, {test_yaffs_open_ELOOP_dir,test_yaffs_open_ELOOP_dir_clean,"test_yaffs_open_ELOOP_dir"}, + {test_yaffs_open_EROFS,test_yaffs_open_EROFS_clean,"test_yaffs_open_EROFS"}, + {test_yaffs_open_EACCES,test_yaffs_open_EACCES_clean,"test_yaffs_open_EACCES"}, {test_yaffs_close_EBADF,test_yaffs_close_EBADF_clean,"test_yaffs_close_EBADF"}, @@ -241,6 +260,7 @@ test_template test_list[]={ {test_yaffs_access_ELOOP_dir,test_yaffs_access_ELOOP_dir_clean,"test_yaffs_access_ELOOP_dir"}, {test_yaffs_access_ELOOP,test_yaffs_access_ELOOP_clean,"test_yaffs_access_ELOOP"}, {test_yaffs_access_EROFS,test_yaffs_access_EROFS_clean,"test_yaffs_access_EROFS"}, + {test_yaffs_access_EACCES,test_yaffs_access_EACCES_clean,"test_yaffs_access_EACCES"}, {test_yaffs_unlink, test_yaffs_unlink_clean,"test_yaffs_unlink"}, {test_yaffs_unlink_EISDIR,test_yaffs_unlink_EISDIR_clean,"test_yaffs_unlink_EISDIR"}, @@ -250,6 +270,7 @@ test_template test_list[]={ {test_yaffs_unlink_ENOENT,test_yaffs_unlink_ENOENT_clean,"test_yaffs_unlink_ENOENT"}, {test_yaffs_unlink_ENOENT2,test_yaffs_unlink_ENOENT2_clean,"test_yaffs_unlink_ENOENT2"}, {test_yaffs_unlink_ELOOP_dir,test_yaffs_unlink_ELOOP_dir_clean,"test_yaffs_unlink_ELOOP_dir"}, + {test_yaffs_unlink_EROFS,test_yaffs_unlink_EROFS_clean,"test_yaffs_unlink_EROFS"}, {test_yaffs_lseek,test_yaffs_lseek_clean,"test_yaffs_lseek"}, @@ -260,6 +281,7 @@ test_template test_list[]={ {test_yaffs_write,test_yaffs_write_clean,"test_yaffs_write"}, {test_yaffs_write_EBADF,test_yaffs_write_EBADF_clean,"test_yaffs_write_EBADF"}, {test_yaffs_write_big_file,test_yaffs_write_big_file_clean,"test_yaffs_write_big_file"}, + {test_yaffs_write_EROFS,test_yaffs_write_EROFS_clean,"test_yaffs_write_EROFS"}, {test_yaffs_read,test_yaffs_read_clean,"test_yaffs_read"}, {test_yaffs_read_EBADF,test_yaffs_read_EBADF_clean,"test_yaffs_read_EBADF"}, @@ -279,6 +301,7 @@ test_template test_list[]={ {test_yaffs_ftruncate_EBADF,test_yaffs_ftruncate_EBADF_clean,"test_yaffs_ftruncate_EBADF"}, {test_yaffs_ftruncate_EINVAL,test_yaffs_ftruncate_EINVAL_clean,"test_yaffs_ftruncate_EINVAL"}, {test_yaffs_ftruncate_big_file,test_yaffs_ftruncate_big_file_clean,"test_yaffs_ftruncate_big_file"}, + {test_yaffs_ftruncate_EROFS,test_yaffs_ftruncate_EROFS_clean,"test_yaffs_ftruncate_EROFS"}, {test_yaffs_truncate,test_yaffs_truncate_clean,"test_yaffs_truncate"}, {test_yaffs_truncate_ENOTDIR,test_yaffs_truncate_ENOTDIR_clean,"test_yaffs_truncate_ENOTDIR"}, @@ -287,6 +310,7 @@ test_template test_list[]={ {test_yaffs_truncate_ENOENT,test_yaffs_truncate_ENOENT_clean,"test_yaffs_truncate_ENOENT"}, {test_yaffs_truncate_ENOENT2,test_yaffs_truncate_ENOENT2_clean,"test_yaffs_truncate_ENOENT2"}, {test_yaffs_truncate_ELOOP,test_yaffs_truncate_ELOOP_clean,"test_yaffs_truncate_ELOOP"}, + {test_yaffs_truncate_EROFS,test_yaffs_truncate_EROFS_clean,"test_yaffs_truncate_EROFS"}, // {test_yaffs_truncate_big_file,test_yaffs_truncate_big_file_clean,"test_yaffs_truncate_big_file"}, //this test does not work because the large number becomes 0 when the file is compiled. {test_yaffs_chmod,test_yaffs_chmod_clean,"test_yaffs_chmod"}, @@ -300,18 +324,23 @@ test_template test_list[]={ {test_yaffs_fchmod,test_yaffs_fchmod_clean,"test_yaffs_fchmod"}, {test_yaffs_fchmod_EBADF,test_yaffs_fchmod_EBADF_clean,"test_yaffs_fchmod_EBADF"}, {test_yaffs_fchmod_EINVAL,test_yaffs_fchmod_EINVAL_clean,"test_yaffs_fchmod_EINVAL"}, + {test_yaffs_fchmod_EROFS,test_yaffs_fchmod_EROFS_clean,"test_yaffs_fchmod_EROFS"}, {test_yaffs_fsync,test_yaffs_fsync_clean,"test_yaffs_fsync"}, {test_yaffs_fsync_EBADF,test_yaffs_fsync_EBADF_clean,"test_yaffs_fsync_EBADF"}, + {test_yaffs_fsync_EROFS,test_yaffs_fsync_EROFS_clean,"test_yaffs_fsync_EROFS"}, {test_yaffs_fdatasync,test_yaffs_fdatasync_clean,"test_yaffs_fdatasync"}, {test_yaffs_fdatasync_EBADF,test_yaffs_fdatasync_EBADF_clean,"test_yaffs_fdatasync_EBADF"}, + {test_yaffs_fdatasync_EROFS,test_yaffs_fdatasync_EROFS_clean,"test_yaffs_fdatasync_EROFS"}, {test_yaffs_mkdir,test_yaffs_mkdir_clean,"test_yaffs_mkdir"}, {test_yaffs_mkdir_EEXIST,test_yaffs_mkdir_EEXIST_clean,"test_yaffs_mkdir_EEXIST"}, {test_yaffs_mkdir_ENOTDIR,test_yaffs_mkdir_ENOTDIR_clean,"test_yaffs_mkdir_ENOTDIR"}, {test_yaffs_mkdir_ENOENT,test_yaffs_mkdir_ENOENT_clean,"test_yaffs_mkdir_ENOENT"}, {test_yaffs_mkdir_ELOOP_dir,test_yaffs_mkdir_ELOOP_dir_clean,"test_yaffs_mkdir_ELOOP_dir"}, + {test_yaffs_mkdir_EROFS,test_yaffs_mkdir_EROFS_clean,"test_yaffs_mkdir_EROFS"}, + {test_yaffs_symlink,test_yaffs_symlink_clean,"test_yaffs_symlink"}, {test_yaffs_symlink_ENOTDIR,test_yaffs_symlink_ENOTDIR_clean,"test_yaffs_symlink_ENOTDIR"}, @@ -319,6 +348,7 @@ test_template test_list[]={ {test_yaffs_symlink_ENOENT,test_yaffs_symlink_ENOENT_clean,"test_yaffs_symlink_ENOENT"}, {test_yaffs_symlink_ENOENT2,test_yaffs_symlink_ENOENT2_clean,"test_yaffs_symlink_ENOENT2"}, {test_yaffs_symlink_ELOOP_dir,test_yaffs_symlink_ELOOP_dir_clean,"test_yaffs_symlink_ELOOP_dir"}, + {test_yaffs_symlink_EROFS,test_yaffs_symlink_EROFS_clean,"test_yaffs_symlink_EROFS"}, {test_yaffs_mount2,test_yaffs_mount2_clean,"test_yaffs_mount2"}, {test_yaffs_mount2_ENODEV,test_yaffs_mount2_ENODEV_clean,"test_yaffs_mount2_ENODEV"}, @@ -326,12 +356,13 @@ test_template test_list[]={ {test_yaffs_unmount2,test_yaffs_unmount2_clean,"test_yaffs_unmount2"}, {test_yaffs_unmount2_ENODEV,test_yaffs_unmount2_ENODEV_clean,"test_yaffs_unmount2_ENODEV"}, - {test_yaffs_unmount2_EINVAL,test_yaffs_unmount2_EINVAL_clean,"test_yaffs_unmount2_EINVAL"}, {test_yaffs_unmount2_with_handle_open_and_forced_mode_on,test_yaffs_unmount2_with_handle_open_and_forced_mode_on_clean,"test_yaffs_unmount2_with_handle_open_and_forced_mode_on"}, + {test_yaffs_unmount2_EINVAL,test_yaffs_unmount2_EINVAL_clean,"test_yaffs_unmount2_EINVAL"}, +{test_yaffs_unmount2_with_handle_open_and_forced_mode_on,test_yaffs_unmount2_with_handle_open_and_forced_mode_on_clean,"test_yaffs_unmount2_with_handle_open_and_forced_mode_on"}, {test_yaffs_unmount2_with_handle_open_and_forced_mode_off,test_yaffs_unmount2_with_handle_open_and_forced_mode_off_clean,"test_yaffs_unmount2_with_handle_open_and_forced_mode_off"}, {test_yaffs_sync,test_yaffs_sync_clean,"test_yaffs_sync"}, {test_yaffs_sync_ENODEV,test_yaffs_sync_ENODEV_clean,"test_yaffs_sync_ENODEV"}, - + {test_yaffs_sync_EROFS,test_yaffs_sync_EROFS_clean,"test_yaffs_sync_EROFS"}, {test_yaffs_remount_force_off_read_only_off,test_yaffs_remount_force_off_read_only_off_clean,"test_yaffs_remount_force_off_read_only_off"}, @@ -357,6 +388,7 @@ test_template test_list[]={ {test_yaffs_link_ENOENT3,test_yaffs_link_ENOENT3_clean,"test_yaffs_link_ENOENT3"}, {test_yaffs_link_ENOENT4,test_yaffs_link_ENOENT4_clean,"test_yaffs_link_ENOENT4"}, {test_yaffs_link_ELOOP_dir,test_yaffs_link_ELOOP_dir_clean,"test_yaffs_link_ELOOP_dir"}, + {test_yaffs_link_EROFS,test_yaffs_link_EROFS_clean,"test_yaffs_link_EROFS"}, {test_yaffs_rmdir,test_yaffs_rmdir_clean,"test_yaffs_rmdir"}, {test_yaffs_rmdir_EBUSY,test_yaffs_rmdir_EBUSY_clean,"test_yaffs_rmdir_EBUSY"}, @@ -364,6 +396,8 @@ test_template test_list[]={ {test_yaffs_rmdir_ENOENT,test_yaffs_rmdir_ENOENT_clean,"test_yaffs_rmdir_ENOENT"}, {test_yaffs_rmdir_ENOTDIR,test_yaffs_rmdir_ENOTDIR_clean,"test_yaffs_rmdir_ENOTDIR"}, {test_yaffs_rmdir_ELOOP_dir,test_yaffs_rmdir_ELOOP_dir_clean,"test_yaffs_rmdir_ELOOP_dir"}, + {test_yaffs_rmdir_EROFS,test_yaffs_rmdir_EROFS_clean,"test_yaffs_rmdir_EROFS"}, + {test_yaffs_stat_ELOOP_dir,test_yaffs_stat_ELOOP_dir_clean,"test_yaffs_stat_ELOOP_dir"}, {test_yaffs_rename,test_yaffs_rename_clean,"test_yaffs_rename"}, @@ -373,17 +407,19 @@ test_template test_list[]={ {test_yaffs_rename_dir,test_yaffs_rename_dir_clean,"test_yaffs_rename_dir"}, {test_yaffs_rename_dir_ENOENT,test_yaffs_rename_dir_ENOENT_clean,"test_yaffs_rename_dir_ENOENT"}, {test_yaffs_rename_dir_ENOENT2,test_yaffs_rename_dir_ENOENT2_clean,"test_yaffs_rename_dir_ENOENT2"}, - {test_yaffs_rename_file_to_dir,test_yaffs_rename_file_to_dir_clean,"test_yaffs_rename_file_to_dir"}, {test_yaffs_rename_dir_to_file,test_yaffs_rename_dir_to_file_clean,"test_yaffs_rename_dir_to_file"}, + {test_yaffs_rename_file_to_dir,test_yaffs_rename_file_to_dir_clean,"test_yaffs_rename_file_to_dir"}, {test_yaffs_rename_EEXISTS,test_yaffs_rename_EEXISTS_clean,"test_yaffs_rename_EEXISTS"}, {test_yaffs_rename_ELOOP_dir,test_yaffs_rename_ELOOP_dir_clean,"test_yaffs_rename_ELOOP_dir"}, + {test_yaffs_rename_EROFS,test_yaffs_rename_EROFS_clean,"test_yaffs_rename_EROFS"}, {test_yaffs_lstat,test_yaffs_lstat_clean,"test_yaffs_lstat"}, {test_yaffs_lstat_ENOENT,test_yaffs_lstat_ENOENT_clean,"test_yaffs_lstat_ENOENT"}, {test_yaffs_lstat_ENOTDIR,test_yaffs_lstat_ENOTDIR_clean,"test_yaffs_lstat_ENOTDIR"}, {test_yaffs_flush,test_yaffs_flush_clean,"test_yaffs_flush"}, - {test_yaffs_flush_EBADF,test_yaffs_flush_EBADF_clean,"test_yaffs_flush_EBADF"} + {test_yaffs_flush_EBADF,test_yaffs_flush_EBADF_clean,"test_yaffs_flush_EBADF"}, + {test_yaffs_flush_EROFS,test_yaffs_flush_EROFS_clean,"test_yaffs_flush_EROFS"} };