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=e0d6b3233bffc51063ea398d64969096f707e8e4;hp=99102c9f6eca8533e4a44b9d60f7643e382f8599;hb=00ebf30805d631cd9bb3155aa249705b3a5777f5;hpb=9f631b4e43d0b0832ebbe2bd0dc5977186567806 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..e0d6b32 100644 --- a/direct/timothy_tests/quick_tests/test_yaffs_mount_ENAMETOOLONG.c +++ b/direct/timothy_tests/quick_tests/test_yaffs_mount_ENAMETOOLONG.c @@ -1,7 +1,7 @@ /* * YAFFS: Yet another FFS. A NAND-flash specific file system. * - * Copyright (C) 2002-2010 Aleph One Ltd. + * Copyright (C) 2002-2011 Aleph One Ltd. * for Toby Churchill Ltd and Brightstar Engineering * * Created by Timothy Manning @@ -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