X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=direct%2Fbasic-test%2Fdtest.c;h=b9fc0eafe0fd36c3e6bbbd34a41eb357da6e37c4;hp=34112c84ecc861dceb5cc28697199b5839b0a0b1;hb=505255d500d864c1689a6752a728b97859605fd0;hpb=993de0d40a67e466cc22de0df144a6dc363e3193 diff --git a/direct/basic-test/dtest.c b/direct/basic-test/dtest.c index 34112c8..b9fc0ea 100644 --- 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); } +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]; @@ -2686,8 +2702,10 @@ int main(int argc, char *argv[]) //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;