projects
/
yaffs2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
yaffs Update RAM simulator to support start and end blocks
[yaffs2.git]
/
direct
/
basic-test
/
dtest.c
diff --git
a/direct/basic-test/dtest.c
b/direct/basic-test/dtest.c
index 34112c84ecc861dceb5cc28697199b5839b0a0b1..b9fc0eafe0fd36c3e6bbbd34a41eb357da6e37c4 100644
(file)
--- a/
direct/basic-test/dtest.c
+++ b/
direct/basic-test/dtest.c
@@
-292,6
+292,22
@@
void yaffs_backward_scan_test(const char *path)
yaffs_mount(path);
}
yaffs_mount(path);
}
+void null_name_test(const char *path)
+{
+ char fn[100];
+ int h;
+ yaffs_StartUp();
+
+ yaffs_mount(path);
+
+ sprintf(fn,"%s",path);
+
+ h = yaffs_open(fn,O_CREAT| O_TRUNC| O_RDWR, 0666);
+
+ printf("%d\n",h);
+
+}
+
char xxzz[2000];
char xxzz[2000];
@@
-2686,8
+2702,10
@@
int main(int argc, char *argv[])
//check_resize_gc_bug("/flash");
//check_resize_gc_bug("/flash");
- basic_xattr_test("/yaffs2");
- big_xattr_test("/yaffs2");
+ //basic_xattr_test("/yaffs2");
+ //big_xattr_test("/yaffs2");
+
+ null_name_test("yaffs2");
return 0;
return 0;