timothy-tests: Fix paths for wrongly failing tests
authorCharles Manning <cdhmanning@gmail.com>
Fri, 8 Jul 2016 01:50:44 +0000 (13:50 +1200)
committerCharles Manning <cdhmanning@gmail.com>
Fri, 8 Jul 2016 01:50:44 +0000 (13:50 +1200)
All pass now.

Signed-off-by: Charles Manning <cdhmanning@gmail.com>
direct/test-framework/timothy_tests/quick_tests/test_yaffs_link_ENOTDIR2.c
direct/test-framework/timothy_tests/quick_tests/test_yaffs_lstat_ENOTDIR.c
direct/test-framework/timothy_tests/quick_tests/test_yaffs_rename_ENOTDIR.c
direct/test-framework/timothy_tests/quick_tests/test_yaffs_symlink_ENOTDIR.c

index 15f6f87..e424641 100644 (file)
@@ -23,7 +23,7 @@ int test_yaffs_link_ENOTDIR2(void)
                print_message("failed to create file\n",1);
                return -1;
        }
-       output = yaffs_link(FILE_PATH,"yaffs2/test_dir/foo/hard_link");
+       output = yaffs_link(FILE_PATH, FILE_PATH"/hard_link");
        if (output<0){
                error=yaffs_get_error();
                if (abs(error)==ENOTDIR){
index 5dfa1bb..b4bd38e 100644 (file)
@@ -40,7 +40,7 @@ int test_yaffs_lstat_ENOTDIR(void)
                }
        }
        
-       output =yaffs_lstat("yaffs2/test_dir/foo/dir",&stat);
+       output =yaffs_lstat(FILE_PATH"/dir",&stat);
        if (output<0){
                error_code=yaffs_get_error();
                if (abs(error_code)==ENOTDIR){
index 210a08b..08ad89e 100644 (file)
@@ -29,7 +29,7 @@ int test_yaffs_rename_ENOTDIR(void)
                        return -1;
                }
        }
-       output = yaffs_rename("yaffs2/test_dir/foo/file" , RENAME_PATH);
+       output = yaffs_rename(FILE_PATH "/file" , RENAME_PATH);
        if (output<0){ 
                error_code=yaffs_get_error();
                if (abs(error_code)==ENOTDIR){
index 41595eb..514d827 100644 (file)
@@ -22,7 +22,7 @@ int test_yaffs_symlink_ENOTDIR(void)
                print_message("failed to create file\n",1);
                return -1;
        }
-       output = yaffs_symlink(FILE_PATH,"yaffs2/test_dir/no-such-dir/sym_link");
+       output = yaffs_symlink("xxx" ,FILE_PATH"/sym_link");
        if (output<0){ 
                error_code=yaffs_get_error();
                if (abs(error_code)==ENOTDIR){