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=3f5551251f9e6535f0d1e074adb949dab495d1cd;hp=213566389cb9b598ad686e823c22962e4d8e4606;hb=de9d60531e0b398feb6304e02e940fbf6cbc4f57;hpb=41a1d28042b2fe3ca48a53de7c902389c7b51169 diff --git a/direct/timothy_tests/quick_tests/quick_tests.h b/direct/timothy_tests/quick_tests/quick_tests.h index 2135663..3f55512 100644 --- a/direct/timothy_tests/quick_tests/quick_tests.h +++ b/direct/timothy_tests/quick_tests/quick_tests.h @@ -45,6 +45,7 @@ #include "test_yaffs_unlink_ENAMETOOLONG.h" #include "test_yaffs_unlink_ENOTDIR.h" #include "test_yaffs_unlink_ENOENT.h" +#include "test_yaffs_unlink_ENOENT2.h" #include "test_yaffs_ftruncate.h" #include "test_yaffs_ftruncate_EBADF.h" @@ -58,6 +59,7 @@ #include "test_yaffs_truncate_ENOENT.h" #include "test_yaffs_truncate_EINVAL.h" #include "test_yaffs_truncate_big_file.h" +#include "test_yaffs_truncate_ENOENT2.h" #include "test_yaffs_write.h" #include "test_yaffs_write_EBADF.h" @@ -76,10 +78,12 @@ #include "test_yaffs_access_EINVAL.h" #include "test_yaffs_access_ENOTDIR.h" #include "test_yaffs_access_ENOENT.h" +#include "test_yaffs_access_ENOENT2.h" #include "test_yaffs_stat.h" #include "test_yaffs_stat_ENOENT.h" #include "test_yaffs_stat_ENOTDIR.h" +#include "test_yaffs_stat_ENOENT2.h" #include "test_yaffs_fstat.h" #include "test_yaffs_fstat_EBADF.h" @@ -88,6 +92,7 @@ #include "test_yaffs_chmod_ENOENT.h" #include "test_yaffs_chmod_ENOTDIR.h" #include "test_yaffs_chmod_EINVAL.h" +#include "test_yaffs_chmod_ENOENT2.h" #include "test_yaffs_fchmod.h" @@ -103,11 +108,13 @@ #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_symlink.h" #include "test_yaffs_symlink_ENOTDIR.h" #include "test_yaffs_symlink_EEXIST.h" #include "test_yaffs_symlink_ENOENT.h" +#include "test_yaffs_symlink_ENOENT2.h" #include "test_yaffs_mount2.h" #include "test_yaffs_mount2_ENODEV.h" @@ -140,6 +147,27 @@ #include "test_yaffs_link_EEXIST.h" #include "test_yaffs_link_ENOTDIR.h" #include "test_yaffs_link_ENOTDIR2.h" +#include "test_yaffs_link_ENOENT2.h" +#include "test_yaffs_link_ENOENT3.h" + +#include "test_yaffs_rmdir.h" +#include "test_yaffs_rmdir_EBUSY.h" +#include "test_yaffs_rmdir_EINVAL.h" +#include "test_yaffs_rmdir_ENOENT.h" +#include "test_yaffs_rmdir_ENOTDIR.h" + +#include "test_yaffs_rename.h" +#include "test_yaffs_rename_ENOENT.h" +#include "test_yaffs_rename_ENOTDIR.h" +#include "test_yaffs_rename_EINVAL.h" +#include "test_yaffs_rename_dir.h" +#include "test_yaffs_rename_dir_ENOENT.h" +#include "test_yaffs_rename_dir_ENOENT2.h" +#include "test_yaffs_rename_dir_to_file.h" +#include "test_yaffs_rename_file_to_dir.h" +#include "test_yaffs_rename_EEXISTS.h" + +#include "test_yaffs_lstat.h" #include "yaffsfs.h" #include "yaffs_error_converter.h" @@ -182,6 +210,7 @@ test_template test_list[]={ {test_yaffs_access_EINVAL,test_yaffs_access_EINVAL_clean,"test_yaffs_access_EINVAL"}, {test_yaffs_access_ENOTDIR,test_yaffs_access_ENOTDIR_clean,"test_yaffs_access_ENOTDIR"}, {test_yaffs_access_ENOENT,test_yaffs_access_ENOENT_clean,"test_yaffs_access_ENOENT"}, + {test_yaffs_access_ENOENT2,test_yaffs_access_ENOENT2_clean,"test_yaffs_access_ENOENT2"}, {test_yaffs_unlink, test_yaffs_unlink_clean,"test_yaffs_unlink"}, {test_yaffs_unlink_EISDIR,test_yaffs_unlink_EISDIR_clean,"test_yaffs_unlink_EISDIR"}, @@ -189,6 +218,7 @@ test_template test_list[]={ {test_yaffs_unlink_ENAMETOOLONG,test_yaffs_unlink_ENAMETOOLONG_clean,"test_yaffs_unlink_ENAMETOOLONG"}, {test_yaffs_unlink_ENOTDIR,test_yaffs_unlink_ENOTDIR_clean,"test_yaffs_unlink_ENOTDIR"}, {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_lseek,test_yaffs_lseek_clean,"test_yaffs_lseek"}, @@ -207,6 +237,7 @@ test_template test_list[]={ {test_yaffs_stat,test_yaffs_stat_clean,"test_yaffs_stat"}, {test_yaffs_stat_ENOENT,test_yaffs_stat_ENOENT_clean,"test_yaffs_stat_ENOENT"}, {test_yaffs_stat_ENOTDIR,test_yaffs_stat_ENOTDIR_clean,"test_yaffs_stat_ENOTDIR"}, + {test_yaffs_stat_ENOENT2,test_yaffs_stat_ENOENT2_clean,"test_yaffs_stat_ENOENT2"}, {test_yaffs_fstat,test_yaffs_fstat_clean,"test_yaffs_fstat"}, {test_yaffs_fstat_EBADF,test_yaffs_fstat_EBADF_clean,"test_yaffs_fstat_EBADF"}, @@ -221,6 +252,7 @@ test_template test_list[]={ {test_yaffs_truncate_EISDIR,test_yaffs_truncate_EISDIR_clean,"test_yaffs_truncate_EISDIR"}, {test_yaffs_truncate_EINVAL,test_yaffs_truncate_EINVAL_clean,"test_yaffs_truncate_EINVAL"}, {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_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"}, @@ -241,11 +273,13 @@ test_template test_list[]={ {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_symlink,test_yaffs_symlink_clean,"test_yaffs_symlink"}, {test_yaffs_symlink_ENOTDIR,test_yaffs_symlink_ENOTDIR_clean,"test_yaffs_symlink_ENOTDIR"}, {test_yaffs_symlink_EEXIST,test_yaffs_symlink_EEXIST_clean,"test_yaffs_symlink_EEXIST"}, {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_mount2,test_yaffs_mount2_clean,"test_yaffs_mount2"}, {test_yaffs_mount2_ENODEV,test_yaffs_mount2_ENODEV_clean,"test_yaffs_mount2_ENODEV"}, @@ -279,8 +313,27 @@ test_template test_list[]={ {test_yaffs_link_ENOENT,test_yaffs_link_ENOENT_clean,"test_yaffs_link_ENOENT"}, {test_yaffs_link_EEXIST,test_yaffs_link_EEXIST_clean,"test_yaffs_link_EEXIST"}, {test_yaffs_link_ENOTDIR,test_yaffs_link_ENOTDIR_clean,"test_yaffs_link_ENOTDIR"}, - {test_yaffs_link_ENOTDIR2,test_yaffs_link_ENOTDIR2_clean,"test_yaffs_link_ENOTDIR2"} - + {test_yaffs_link_ENOTDIR2,test_yaffs_link_ENOTDIR2_clean,"test_yaffs_link_ENOTDIR2"}, + {test_yaffs_link_ENOENT2,test_yaffs_link_ENOENT2_clean,"test_yaffs_link_ENOENT2"}, + {test_yaffs_link_ENOENT3,test_yaffs_link_ENOENT3_clean,"test_yaffs_link_ENOENT3"}, + + {test_yaffs_rmdir,test_yaffs_rmdir_clean,"test_yaffs_rmdir"}, + {test_yaffs_rmdir_EBUSY,test_yaffs_rmdir_EBUSY_clean,"test_yaffs_rmdir_EBUSY"}, + {test_yaffs_rmdir_EINVAL,test_yaffs_rmdir_EINVAL_clean,"test_yaffs_rmdir_EINVAL"}, + {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_rename,test_yaffs_rename_clean,"test_yaffs_rename"}, + {test_yaffs_rename_ENOENT,test_yaffs_rename_ENOENT_clean,"test_yaffs_rename_ENOENT"}, + {test_yaffs_rename_ENOTDIR,test_yaffs_rename_ENOTDIR_clean,"test_yaffs_rename_ENOTDIR"}, + {test_yaffs_rename_EINVAL,test_yaffs_rename_EINVAL_clean,"test_yaffs_rename_EINVAL"}, + {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_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_lstat,test_yaffs_lstat_clean,"test_yaffs_lstat"} }; void init_quick_tests(int argc, char *argv[]);