X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;f=direct%2Ftimothy_tests%2Fquick_tests%2Ftest_yaffs_chmod_EINVAL2.c;fp=direct%2Ftimothy_tests%2Fquick_tests%2Ftest_yaffs_chmod_EINVAL2.c;h=0000000000000000000000000000000000000000;hb=529984f4a8f8bdcfd75866462ba6b89695b0b9b0;hp=a5b6bb17ff94acd4b3cc4cf91dc83d7c9ebc8a15;hpb=129c903587142a48f089b02a9309dab746d8a2c9;p=yaffs2.git diff --git a/direct/timothy_tests/quick_tests/test_yaffs_chmod_EINVAL2.c b/direct/timothy_tests/quick_tests/test_yaffs_chmod_EINVAL2.c deleted file mode 100644 index a5b6bb1..0000000 --- a/direct/timothy_tests/quick_tests/test_yaffs_chmod_EINVAL2.c +++ /dev/null @@ -1,39 +0,0 @@ -/* - * 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_chmod_EINVAL2.h" - -int test_yaffs_chmod_EINVAL2(void) -{ - int error=0; - int output=yaffs_chmod("/non_existing_directory/foo",255); - - if (output<0){ - error=yaffs_get_error(); - if (abs(error)==EINVAL){ - return 1; - } else { - print_message("different error than expected\n",2); - return -1; - } - } else { - print_message("chmoded the file (which is a bad thing)\n",2); - return -1; - } - -} - -int test_yaffs_chmod_EINVAL2_clean(void) -{ - return test_yaffs_chmod(); -}