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=da12b1e3bf33660619380b25c0daeeac444d72de;hb=6648cbf52d6695755941ff8607fd7a0cda542e05;hpb=24c7a59d54dbe6946be101db3c8ae38f92634129 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 da12b1e..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,27 +16,28 @@ -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; } - + /* set up the file name */ for (x=0; x