projects
/
yaffs2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
yaffs Modified the make file to work with new name changes.
[yaffs2.git]
/
direct
/
timothy_tests
/
quick_tests
/
test_yaffs_unlinking.c
diff --git
a/direct/timothy_tests/quick_tests/test_yaffs_unlinking.c
b/direct/timothy_tests/quick_tests/test_yaffs_unlinking.c
index 4972dfb10f5f3a37abe38685e6161d4e14b678c6..d5f278734b31db4c8eff568255d2cad66126b644 100644
(file)
--- a/
direct/timothy_tests/quick_tests/test_yaffs_unlinking.c
+++ b/
direct/timothy_tests/quick_tests/test_yaffs_unlinking.c
@@
-2,9
+2,15
@@
int test_yaffs_unlinking(void){
int output=yaffs_unlink(FILE_PATH);
int test_yaffs_unlinking(void){
int output=yaffs_unlink(FILE_PATH);
- return output;
+ if (output>=0){
+ return (-test_yaffs_access()); /*return negative access. we do not want the file to be there*/
+ }
+ else {
+ printf("failed to unlink file\n") ;
+ return -1;
+ }
}
int test_yaffs_unlinking_clean(void){
}
int test_yaffs_unlinking_clean(void){
- return test_open_file();
+ return test_
yaffs_
open_file();
}
}