X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;f=direct%2Ftimothy_tests%2Fquick_tests%2Ftest_yaffs_open_file_ENOENT.c;fp=direct%2Ftimothy_tests%2Fquick_tests%2Ftest_yaffs_open_file_ENOENT.c;h=02c02bbc38b3f85341a7a9a0eb72ced2fa99fcd2;hb=90c66937f76d1e4ce1fb43aed91219c4f1e443f1;hp=0000000000000000000000000000000000000000;hpb=98fdd77e12f7a14163568906da90b11f90f9f3e8;p=yaffs2.git diff --git a/direct/timothy_tests/quick_tests/test_yaffs_open_file_ENOENT.c b/direct/timothy_tests/quick_tests/test_yaffs_open_file_ENOENT.c new file mode 100644 index 0000000..02c02bb --- /dev/null +++ b/direct/timothy_tests/quick_tests/test_yaffs_open_file_ENOENT.c @@ -0,0 +1,21 @@ +#include "test_yaffs_open_file_ENOENT.h" + + +int test_yaffs_open_file_ENOENT(void){ + + int output=0; + + /*printf("path %s\n",path); */ + output=yaffs_open(FILE_PATH, O_TRUNC| O_RDWR, "/yaffs2/non_existant_file"); + if (output==ENOENT){ + return output; + } + else if (output >=0){ + printf("non existant file opened.(which is a bad thing)\n"); + return -1; + } +} +int test_yaffs_open_file_ENOENT_clean(void){ + return 1; +} +