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=0b3630815e654d92f57540167f1af78a28e75bc7;hp=99102c9f6eca8533e4a44b9d60f7643e382f8599;hb=c883969be5fbee680417b7a310ed29f8e738c869;hpb=1c8604a29f8ca073e1f5129c58e201a4b42bc192 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 99102c9..0b36308 100644 --- a/direct/timothy_tests/quick_tests/test_yaffs_mount_ENAMETOOLONG.c +++ b/direct/timothy_tests/quick_tests/test_yaffs_mount_ENAMETOOLONG.c @@ -16,49 +16,48 @@ -int test_yaffs_mount_ENAMETOOLONG(void){ - int output=0; - int x; - int error_code=0; - int file_name_length=1000000; +int test_yaffs_mount_ENAMETOOLONG(void) +{ + int output = 0; + int x = 0; + int error_code = 0; + 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(); + output = test_yaffs_unmount(); if (output<0){ - printf("yaffs failed to unmount\n"); + print_message("yaffs failed to unmount\n", 2); return -1; } - strcat(file_name,YAFFS_MOUNT_POINT); - for (x=strlen(YAFFS_MOUNT_POINT); x