X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=direct%2Ftest-framework%2Ftimothy_tests%2Fquick_tests%2Flib.c;h=5673ff18e78d5893e4697cfef5f910e1c1550a63;hp=25a7942514ac8f2672a75060523bbb5d85199409;hb=1f3d64d1d804fef6715126dead54bf30b176c67e;hpb=17c2897913447766bfd88fd49ca897821a3d2205 diff --git a/direct/test-framework/timothy_tests/quick_tests/lib.c b/direct/test-framework/timothy_tests/quick_tests/lib.c index 25a7942..5673ff1 100644 --- a/direct/test-framework/timothy_tests/quick_tests/lib.c +++ b/direct/test-framework/timothy_tests/quick_tests/lib.c @@ -1,8 +1,7 @@ /* * YAFFS: Yet another FFS. A NAND-flash specific file system. * - * Copyright (C) 2002-2011 Aleph One Ltd. - * for Toby Churchill Ltd and Brightstar Engineering + * Copyright (C) 2002-2018 Aleph One Ltd. * * Created by Timothy Manning * @@ -37,6 +36,7 @@ int get_exit_on_error(void) int EROFS_setup(void) { int output= -1; + output=yaffs_remount(YAFFS_MOUNT_POINT,1,1); if (output<0){ print_message("failed to remount yaffs\n",2); @@ -132,16 +132,19 @@ void print_message(char *message,char print_level) /*same as forcing the rmdir of a directory*/ int delete_dir(char *dir_name) { + char message[200]; yaffs_DIR *d; struct yaffs_dirent *de; struct yaffs_stat s; char str[100]; d = yaffs_opendir(dir_name); - printf("%s\n",dir_name); + //printf("%s\n",dir_name); if(!d) { - printf("%s\n",dir_name); - print_message("failed to open dir\n",2); + sprintf(message,"\nfailed to open dir %s \n was trying to delete this",dir_name); + print_message(message,1); + + get_error(); return -1; }