X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=direct%2Ftimothy_tests%2Fquick_tests%2Ftest_yaffs_open_EEXIST.c;h=90ba455eb9566f0190b3066076ba43cb7f7a5f2c;hp=bc4a9d2211a4d414ffb569d6eaf544318eec53af;hb=8f3b332855f68abc47f9da5b0f1877f33f70ba15;hpb=fa6335ddf55329c1ba1c50c68080a559461151cc diff --git a/direct/timothy_tests/quick_tests/test_yaffs_open_EEXIST.c b/direct/timothy_tests/quick_tests/test_yaffs_open_EEXIST.c index bc4a9d2..90ba455 100644 --- a/direct/timothy_tests/quick_tests/test_yaffs_open_EEXIST.c +++ b/direct/timothy_tests/quick_tests/test_yaffs_open_EEXIST.c @@ -1,3 +1,16 @@ +/* + * YAFFS: Yet another FFS. A NAND-flash specific file system. + * + * Copyright (C) 2002-2010 Aleph One Ltd. + * for Toby Churchill Ltd and Brightstar Engineering + * + * Created by Timothy Manning + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + */ + #include "test_yaffs_open_EEXIST.h" static int handle=0; @@ -8,7 +21,7 @@ int test_yaffs_open_EEXIST(void){ handle=yaffs_open(FILE_PATH, O_CREAT | O_EXCL | O_TRUNC| O_RDWR ,FILE_MODE ); if (handle==-1){ error_code=yaffs_get_error(); - printf("EEXIST def %d, Error code %d\n",(- EEXIST),error_code); + //printf("EEXIST def %d, Error code %d\n",(- EEXIST),error_code); if (abs(error_code)== EEXIST){ return 1; }