From 505255d500d864c1689a6752a728b97859605fd0 Mon Sep 17 00:00:00 2001 From: Charles Manning Date: Fri, 30 Jul 2010 13:52:14 +1200 Subject: [PATCH] yaffs Add another test to basic tests Signed-off-by: Charles Manning --- direct/basic-test/dtest.c | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) 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; -- 2.30.2