X-Git-Url: https://yaffs.net/gitweb/?a=blobdiff_plain;f=direct%2Ftimothy_tests%2Fquick_tests%2Ftest_yaffs_fchmod_EBADF.c;h=faed470b2f16dcf1d70d29963c645c567365c274;hb=d7388fb75a13610d14d0afc397f826bd44c972e1;hp=0a521b8b03cf63c89b189e8fc878363ae628fd1e;hpb=050a7702e4c058234102772f12846e7a878ca769;p=yaffs2.git diff --git a/direct/timothy_tests/quick_tests/test_yaffs_fchmod_EBADF.c b/direct/timothy_tests/quick_tests/test_yaffs_fchmod_EBADF.c index 0a521b8..faed470 100644 --- a/direct/timothy_tests/quick_tests/test_yaffs_fchmod_EBADF.c +++ b/direct/timothy_tests/quick_tests/test_yaffs_fchmod_EBADF.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 @@ -19,7 +19,7 @@ int test_yaffs_fchmod_EBADF(void) int error = 0; int output = 0; - output = yaffs_fchmod(-1,S_IREAD||S_IWRITE); + output = yaffs_fchmod(-1,S_IREAD|S_IWRITE); if (output<0){ error=yaffs_get_error(); @@ -40,5 +40,4 @@ int test_yaffs_fchmod_EBADF(void) int test_yaffs_fchmod_EBADF_clean(void) { return 1; - }