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=e7ae6bae2f873db2a189f7e5aa7dc7e1842482cd;hp=ebe55b6fa5377c7756a6c0ce4f1350476940376a;hb=250248634f57704c06d3ae5050febb33ad5c67d8;hpb=9af5d90f5726655f1d5da3920fa6f3f0974041c2 diff --git a/direct/timothy_tests/quick_tests/quick_tests.h b/direct/timothy_tests/quick_tests/quick_tests.h index ebe55b6..e7ae6ba 100644 --- a/direct/timothy_tests/quick_tests/quick_tests.h +++ b/direct/timothy_tests/quick_tests/quick_tests.h @@ -17,18 +17,24 @@ #define __quick_tests_h__ #include -#include "test_mount_yaffs.h" +#include "test_yaffs_mount.h" #include "test_yaffs_open.h" #include "test_yaffs_open_EISDIR.h" #include "test_yaffs_open_EEXIST.h" #include "test_yaffs_open_ENOENT.h" #include "test_yaffs_open_ENOTDIR.h" +#include "test_yaffs_open_ENAMETOOLONG.h" #include "test_yaffs_close_EBADF.h" -#include "test_yaffs_unlinking.h" +#include "test_yaffs_unlink.h" +#include "test_yaffs_unlink_EISDIR.h" +#include "test_yaffs_unlink_ENOENT.h" +#include "test_yaffs_unlink_ENAMETOOLONG.h" +#include "test_yaffs_unlink_ENOTDIR.h" + #include "test_yaffs_ftruncate.h" #include "test_yaffs_truncate.h" #include "test_yaffs_write.h" @@ -40,26 +46,36 @@ #include "yaffs_error_converter.h" #include "lib.h" + +#define EXIT_ON_ERROR 0 + typedef struct test { int (*p_function)(void); /*pointer to test function*/ int (*p_function_clean)(void); /*char pass_message[50]; will not need a pass message*/ - char *fail_message; /*pointer to fail message, needs to include name of test*/ + char *name_of_test; /*pointer to fail message, needs to include name of test*/ }test_template; test_template test_list[]={ - {mount_yaffs_test,mount_yaffs_test_clean,"mount_yaffs_test"}, + {test_yaffs_mount,test_yaffs_mount_clean,"test_yaffs_mount"}, {test_yaffs_open,test_yaffs_open_clean,"test_yaffs_open"}, {test_yaffs_open_EISDIR,test_yaffs_open_EISDIR_clean,"test_yaffs_open_EISDIR"}, {test_yaffs_open_EEXIST,test_yaffs_open_EEXIST_clean,"test_yaffs_open_EEXIST"}, {test_yaffs_open_ENOTDIR,test_yaffs_open_ENOTDIR_clean,"test_yaffs_open_ENOTDIR"}, {test_yaffs_open_ENOENT,test_yaffs_open_ENOENT_clean,"test_yaffs_open_ENOENT"}, + {test_yaffs_open_ENAMETOOLONG,test_yaffs_open_ENAMETOOLONG_clean,"test_yaffs_open_ENAMETOOLONG"}, {test_yaffs_close_EBADF,test_yaffs_close_EBADF_clean,"test_yaffs_close_EBADF"}, {test_yaffs_access,test_yaffs_access_clean,"test_yaffs_access"}, - {test_yaffs_unlinking, test_yaffs_unlinking_clean,"test_yaffs_unlinking"}, + + {test_yaffs_unlink, test_yaffs_unlink_clean,"test_yaffs_unlink"}, + {test_yaffs_unlink_EISDIR,test_yaffs_unlink_EISDIR_clean,"test_yaffs_unlink_EISDIR"}, + {test_yaffs_unlink_ENOENT,test_yaffs_unlink_ENOENT_clean,"test_yaffs_unlink_ENOENT"}, + {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_lseek,test_yaffs_lseek_clean,"test_yaffs_lseek"}, {test_yaffs_write,test_yaffs_write_clean,"test_yaffs_write"}, @@ -74,4 +90,5 @@ test_template test_list[]={ void init_quick_tests(void); void quit_quick_tests(int exit_code); +void get_error(void); #endif