X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=direct%2Ftimothy_tests%2Fquick_tests%2Ftest_yaffs_mount_ENAMETOOLONG.c;h=99102c9f6eca8533e4a44b9d60f7643e382f8599;hp=a61d0b3212c7a043d21e35d724749fdd47b7d8a9;hb=e0b53924703fe414a99dbf49682cf8459540a3e5;hpb=559fc3d004f76e506ecb5e7efe56fdb5cceed943 diff --git a/direct/timothy_tests/quick_tests/test_yaffs_mount_ENAMETOOLONG.c b/direct/timothy_tests/quick_tests/test_yaffs_mount_ENAMETOOLONG.c index a61d0b3..99102c9 100644 --- a/direct/timothy_tests/quick_tests/test_yaffs_mount_ENAMETOOLONG.c +++ b/direct/timothy_tests/quick_tests/test_yaffs_mount_ENAMETOOLONG.c @@ -23,6 +23,13 @@ int test_yaffs_mount_ENAMETOOLONG(void){ int file_name_length=1000000; char file_name[file_name_length]; + /* if a second file system is mounted then yaffs will return EBUSY. so first unmount yaffs */ + output=test_yaffs_unmount(); + if (output<0){ + printf("yaffs failed to unmount\n"); + return -1; + } + strcat(file_name,YAFFS_MOUNT_POINT); for (x=strlen(YAFFS_MOUNT_POINT); x