X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=direct%2Ftest-framework%2Ftimothy_tests%2Fquick_tests%2Ftest_yaffs_symlink_ENOTDIR.c;h=514d827c72a283c4e26b9189acb0b511deea950c;hp=680f0aaab2c5b6473982abfc22bc6ed6ae35a0f3;hb=5bc32d099123b2e0e5f27f7421caa5413d3211f0;hpb=e5daa72b0083831ab762a650860687fe7d25d6b3 diff --git a/direct/test-framework/timothy_tests/quick_tests/test_yaffs_symlink_ENOTDIR.c b/direct/test-framework/timothy_tests/quick_tests/test_yaffs_symlink_ENOTDIR.c index 680f0aa..514d827 100644 --- a/direct/test-framework/timothy_tests/quick_tests/test_yaffs_symlink_ENOTDIR.c +++ b/direct/test-framework/timothy_tests/quick_tests/test_yaffs_symlink_ENOTDIR.c @@ -18,7 +18,11 @@ static int output = 0; int test_yaffs_symlink_ENOTDIR(void) { int error_code = 0; - output = yaffs_symlink(FILE_PATH,"yaffs2/foo/sym_link"); + if (yaffs_close(yaffs_open(FILE_PATH,O_CREAT | O_RDWR, FILE_MODE))==-1){ + print_message("failed to create file\n",1); + return -1; + } + output = yaffs_symlink("xxx" ,FILE_PATH"/sym_link"); if (output<0){ error_code=yaffs_get_error(); if (abs(error_code)==ENOTDIR){