timothy-tests: Change mountpoint names to match test framework
authorCharles Manning <cdhmanning@gmail.com>
Fri, 8 Jul 2016 01:30:52 +0000 (13:30 +1200)
committerCharles Manning <cdhmanning@gmail.com>
Fri, 8 Jul 2016 01:31:21 +0000 (13:31 +1200)
Signed-off-by: Charles Manning <cdhmanning@gmail.com>
32 files changed:
direct/test-framework/timothy_tests/quick_tests/test_yaffs_access_ENOENT.c
direct/test-framework/timothy_tests/quick_tests/test_yaffs_access_ENOTDIR.c
direct/test-framework/timothy_tests/quick_tests/test_yaffs_chmod_EINVAL.c
direct/test-framework/timothy_tests/quick_tests/test_yaffs_chmod_ENOENT.c
direct/test-framework/timothy_tests/quick_tests/test_yaffs_chmod_ENOTDIR.c
direct/test-framework/timothy_tests/quick_tests/test_yaffs_link_ENOENT.c
direct/test-framework/timothy_tests/quick_tests/test_yaffs_link_ENOTDIR.c
direct/test-framework/timothy_tests/quick_tests/test_yaffs_mkdir_EEXIST.c
direct/test-framework/timothy_tests/quick_tests/test_yaffs_mkdir_ENOTDIR.c
direct/test-framework/timothy_tests/quick_tests/test_yaffs_open_ENOENT.c
direct/test-framework/timothy_tests/quick_tests/test_yaffs_open_ENOTDIR.c
direct/test-framework/timothy_tests/quick_tests/test_yaffs_rename_EEXISTS.c
direct/test-framework/timothy_tests/quick_tests/test_yaffs_rename_EINVAL.c
direct/test-framework/timothy_tests/quick_tests/test_yaffs_rename_EROFS.c
direct/test-framework/timothy_tests/quick_tests/test_yaffs_rename_dir_ENOENT.c
direct/test-framework/timothy_tests/quick_tests/test_yaffs_rename_dir_ENOENT2.c
direct/test-framework/timothy_tests/quick_tests/test_yaffs_rename_dir_not_empty.c
direct/test-framework/timothy_tests/quick_tests/test_yaffs_rmdir_EBUSY.c
direct/test-framework/timothy_tests/quick_tests/test_yaffs_rmdir_EINVAL.c
direct/test-framework/timothy_tests/quick_tests/test_yaffs_rmdir_ENOENT.c
direct/test-framework/timothy_tests/quick_tests/test_yaffs_rmdir_ENOTDIR.c
direct/test-framework/timothy_tests/quick_tests/test_yaffs_rmdir_ENOTEMPTY.c
direct/test-framework/timothy_tests/quick_tests/test_yaffs_stat_ENOENT.c
direct/test-framework/timothy_tests/quick_tests/test_yaffs_stat_ENOTDIR.c
direct/test-framework/timothy_tests/quick_tests/test_yaffs_symlink_ENOENT.c
direct/test-framework/timothy_tests/quick_tests/test_yaffs_symlink_ENOTDIR.c
direct/test-framework/timothy_tests/quick_tests/test_yaffs_truncate_EISDIR.c
direct/test-framework/timothy_tests/quick_tests/test_yaffs_truncate_ENOENT.c
direct/test-framework/timothy_tests/quick_tests/test_yaffs_truncate_ENOTDIR.c
direct/test-framework/timothy_tests/quick_tests/test_yaffs_truncate_big_file.c
direct/test-framework/timothy_tests/quick_tests/test_yaffs_unlink_ENOENT.c
direct/test-framework/timothy_tests/quick_tests/test_yaffs_unlink_ENOTDIR.c

index 8e58b17..cc6fad0 100644 (file)
@@ -19,7 +19,7 @@ int test_yaffs_access_ENOENT(void)
        int output=0;
        int error_code=0;
 
-       output=yaffs_access("/yaffs2/non_existant_file",0);
+       output=yaffs_access(YAFFS_MOUNT_POINT "/non_existant_file",0);
        if (output==-1){
                error_code=yaffs_get_error();
                if (abs(error_code)==ENOENT){
index 021c03d..4f48117 100644 (file)
@@ -21,7 +21,7 @@ int test_yaffs_access_ENOTDIR(void)
                print_message("failed to create file\n",1);
                return -1;
        }
-       output=yaffs_access("/yaffs2/test_dir/foo/file",0);
+       output=yaffs_access(YAFFS_MOUNT_POINT "/test_dir/foo/file",0);
        if (output==-1){
                error_code=yaffs_get_error();
                if (abs(error_code)==ENOTDIR){
index df0205f..6522870 100644 (file)
@@ -18,7 +18,7 @@ int test_yaffs_chmod_EINVAL(void)
        int error=0;
        int output;
 
-       output = yaffs_chmod("/yaffs2/foo",11111);
+       output = yaffs_chmod(YAFFS_MOUNT_POINT "/foo",11111);
 
        if (output<0){
                error=yaffs_get_error();
index 1ea97e4..27fa523 100644 (file)
@@ -16,7 +16,7 @@
 int test_yaffs_chmod_ENOENT(void)
 {
        int error=0;
-       int output=yaffs_chmod("/yaffs2/non_existing_file",S_IREAD|S_IWRITE);
+       int output=yaffs_chmod(YAFFS_MOUNT_POINT "/non_existing_file",S_IREAD|S_IWRITE);
 
        if (output<0){
                error=yaffs_get_error();
index 86155b2..ad0d1cf 100644 (file)
@@ -20,7 +20,7 @@ int test_yaffs_chmod_ENOTDIR(void)
                print_message("failed to create file\n",1);
                return -1;
        }
-       int output=yaffs_chmod("/yaffs2/test_dir/foo/file",S_IREAD|S_IWRITE);
+       int output=yaffs_chmod(YAFFS_MOUNT_POINT "/test_dir/foo/file",S_IREAD|S_IWRITE);
 
        if (output<0){
                error=yaffs_get_error();
index 5c7f3e4..896ba48 100644 (file)
@@ -19,7 +19,7 @@ int test_yaffs_link_ENOENT(void)
 {
        int output=0;   
        int error =0;
-       output = yaffs_link("/yaffs2/non-existing-file",HARD_LINK_PATH);
+       output = yaffs_link(YAFFS_MOUNT_POINT "/non-existing-file",HARD_LINK_PATH);
        if (output<0){
                error=yaffs_get_error();
                if (abs(error)==ENOENT){
index 0d54023..bf666dd 100644 (file)
@@ -23,7 +23,7 @@ int test_yaffs_link_ENOTDIR(void)
                print_message("failed to create file\n",1);
                return -1;
        }
-       output = yaffs_link("/yaffs2/test_dir/foo/file",HARD_LINK_PATH);
+       output = yaffs_link(YAFFS_MOUNT_POINT "/test_dir/foo/file",HARD_LINK_PATH);
        if (output<0){
                error=yaffs_get_error();
                if (abs(error)==ENOTDIR){
index 5c99800..c569531 100644 (file)
@@ -24,7 +24,7 @@ int test_yaffs_mkdir_EEXIST(void)
                print_message("failed to create the directory the first time\n",2);
                return -1;
        }
-       output = yaffs_mkdir("/yaffs2/test_dir/new_directory/",O_CREAT | O_RDWR);
+       output = yaffs_mkdir(YAFFS_MOUNT_POINT "/test_dir/new_directory/",O_CREAT | O_RDWR);
        if (output < 0){
                error_code = yaffs_get_error();
                if (abs(error_code) == EEXIST){
index 709e3ed..f461401 100644 (file)
@@ -23,7 +23,7 @@ int test_yaffs_mkdir_ENOTDIR(void)
                print_message("failed to create file\n",1);
                return -1;
        }
-       output = yaffs_mkdir("/yaffs2/test_dir/foo/new_directory/",O_CREAT | O_RDWR);
+       output = yaffs_mkdir(YAFFS_MOUNT_POINT "/test_dir/foo/new_directory/",O_CREAT | O_RDWR);
        if (output < 0){
                error_code = yaffs_get_error();
                if (abs(error_code) == ENOTDIR){
index 9456e08..f837e8c 100644 (file)
@@ -19,7 +19,7 @@ int test_yaffs_open_ENOENT(void)
 {
        int error_code = 0;
        /*printf("path %s\n",path); */
-       handle = yaffs_open("/yaffs2/non_existant_file", O_TRUNC| O_RDWR,FILE_MODE );
+       handle = yaffs_open(YAFFS_MOUNT_POINT "/non_existant_file", O_TRUNC| O_RDWR,FILE_MODE );
        if (handle == -1){
                error_code = yaffs_get_error();
                if (abs(error_code) == ENOENT){
index 6b0fc98..45337fd 100644 (file)
@@ -20,7 +20,7 @@ int test_yaffs_open_ENOTDIR(void)
        int error_code=0;
        handle = yaffs_open(FILE_PATH,O_CREAT | O_RDWR, FILE_MODE);
 
-       handle=yaffs_open("/yaffs2/test_dir/foo/file", O_TRUNC| O_RDWR,FILE_MODE );
+       handle=yaffs_open(YAFFS_MOUNT_POINT "/test_dir/foo/file", O_TRUNC| O_RDWR,FILE_MODE );
        if (handle <0){
                error_code=yaffs_get_error();
                if (abs(error_code)==ENOTDIR){
index 82d29bb..f642b7d 100644 (file)
@@ -39,7 +39,7 @@ int test_yaffs_rename_EEXISTS(void)
                        }
                }
        }
-       output= yaffs_open("/yaffs2/test_dir/dir2/file",O_CREAT | O_RDWR, FILE_MODE);
+       output= yaffs_open(YAFFS_MOUNT_POINT "/test_dir/dir2/file",O_CREAT | O_RDWR, FILE_MODE);
        if (output<0){
                print_message("failed to open file in the second directory\n",2);
                return -1;
@@ -63,8 +63,8 @@ int test_yaffs_rename_EEXISTS(void)
 int test_yaffs_rename_EEXISTS_clean(void)
 {
        int output = 0;
-       if (0 ==  yaffs_access("/yaffs2/dir2/file",0) ) {
-               output = yaffs_unlink("/yaffs2/dir2/file");
+       if (0 ==  yaffs_access(YAFFS_MOUNT_POINT "/dir2/file",0) ) {
+               output = yaffs_unlink(YAFFS_MOUNT_POINT "/dir2/file");
                if (output < 0) {
                        print_message("failed to remove the file\n",2);
                        return -1;
index d1bb6bd..be5cc87 100644 (file)
@@ -29,7 +29,7 @@ int test_yaffs_rename_EINVAL(void)
                        return -1;
                }
        }
-       output = yaffs_rename(DIR_PATH , "/yaffs2/test_dir/new_directory/dir/");
+       output = yaffs_rename(DIR_PATH , YAFFS_MOUNT_POINT "/test_dir/new_directory/dir/");
        if (output<0){ 
                error_code=yaffs_get_error();
                if (abs(error_code)==EINVAL){
index 7c8aa76..2a5765f 100644 (file)
@@ -42,8 +42,8 @@ int test_yaffs_rename_EROFS(void)
 int test_yaffs_rename_EROFS_clean(void)
 {
        int output = 0;
-       if (0 ==  yaffs_access("/yaffs2/dir2/file",0) ) {
-               output = yaffs_unlink("/yaffs2/dir2/file");
+       if (0 ==  yaffs_access(YAFFS_MOUNT_POINT "/dir2/file",0) ) {
+               output = yaffs_unlink(YAFFS_MOUNT_POINT "/dir2/file");
                if (output < 0) {
                        print_message("failed to remove the file\n",2);
                        return -1;
index 059e0b9..8e3b564 100644 (file)
@@ -26,7 +26,7 @@ int test_yaffs_rename_dir_ENOENT(void)
                        return -1;
                }
        }
-       output = yaffs_rename( "/yaffs2/non-existing-dir/" , RENAME_DIR_PATH);
+       output = yaffs_rename( YAFFS_MOUNT_POINT "/non-existing-dir/" , RENAME_DIR_PATH);
        if (output<0){ 
                error_code=yaffs_get_error();
                if (abs(error_code)==ENOENT){
index 2e2cb28..7f02b33 100644 (file)
@@ -26,7 +26,7 @@ int test_yaffs_rename_dir_ENOENT2(void)
                        return -1;
                }
        }
-       output = yaffs_rename( DIR_PATH , "/yaffs2/test_dir/nonexisting-dir/dir");
+       output = yaffs_rename( DIR_PATH , YAFFS_MOUNT_POINT "/test_dir/nonexisting-dir/dir");
        if (output<0){ 
                error_code=yaffs_get_error();
                if (abs(error_code)==ENOENT){
index bc6f01f..c0de1c6 100644 (file)
@@ -18,7 +18,7 @@ int test_yaffs_rename_dir(void)
 {
        int output=0;
        int error_code =0;
-       output = yaffs_open("/yaffs2/new_directory/file",O_CREAT | O_RDWR, S_IREAD | S_IWRITE);
+       output = yaffs_open(YAFFS_MOUNT_POINT "/new_directory/file",O_CREAT | O_RDWR, S_IREAD | S_IWRITE);
        if (output < 0 )
 
        if (0 !=  yaffs_access(FILE_PATH,0)) {
@@ -36,8 +36,8 @@ int test_yaffs_rename_dir(void)
 int test_yaffs_rename_dir_clean(void)
 {
        int output = 0;
-       if (0 ==  yaffs_access("/yaffs2/new_directory/file",0)) {
-               output = yaffs_unlink("/yaffs2/new_directory/file");
+       if (0 ==  yaffs_access(YAFFS_MOUNT_POINT "/new_directory/file",0)) {
+               output = yaffs_unlink(YAFFS_MOUNT_POINT "/new_directory/file");
                if (output < 0) {
                        print_message("failed to remove file\n",2);
                        return -1;
index 482ad16..403e685 100644 (file)
@@ -19,7 +19,7 @@ int test_yaffs_rmdir_EBUSY(void)
        int output=0;
        int error_code =0;
 
-       output = yaffs_rmdir("/yaffs2/");
+       output = yaffs_rmdir(YAFFS_MOUNT_POINT "/");
        if (output<0){ 
                error_code=yaffs_get_error();
                if (abs(error_code)==EBUSY){
index 3518ae2..3fa4f56 100644 (file)
@@ -26,7 +26,7 @@ int test_yaffs_rmdir_EINVAL(void)
                        return -1;
                }
        }
-       output = yaffs_rmdir("/yaffs2/.");
+       output = yaffs_rmdir(YAFFS_MOUNT_POINT "/.");
        if (output<0){ 
                error_code=yaffs_get_error();
                if (abs(error_code)==EINVAL){
index 8ac1f16..192e3d6 100644 (file)
@@ -19,7 +19,7 @@ int test_yaffs_rmdir_ENOENT(void)
        int output=0;
        int error_code =0;
 
-       output = yaffs_rmdir("/yaffs2/non-existing-dir/");
+       output = yaffs_rmdir(YAFFS_MOUNT_POINT "/non-existing-dir/");
        if (output<0){ 
                error_code=yaffs_get_error();
                if (abs(error_code)==ENOENT){
index 412bd3d..f50230d 100644 (file)
@@ -29,7 +29,7 @@ int test_yaffs_rmdir_ENOTDIR(void)
                        return -1;
                }
        }
-       output = yaffs_rmdir("/yaffs2/test_dir/foo/dir/");
+       output = yaffs_rmdir(YAFFS_MOUNT_POINT "/test_dir/foo/dir/");
        if (output<0){ 
                error_code=yaffs_get_error();
                if (abs(error_code)==ENOTDIR){
index 5d881b0..3c198bd 100644 (file)
@@ -29,8 +29,8 @@ int test_yaffs_rmdir_ENOTEMPTY(void)
                        return -1;
                }
        }
-       if (0 !=  yaffs_access("/yaffs2/test_dir/new_directory/dir",0)) {
-               output = yaffs_mkdir("/yaffs2/test_dir/new_directory/dir",S_IWRITE | S_IREAD);
+       if (0 !=  yaffs_access(YAFFS_MOUNT_POINT "/test_dir/new_directory/dir",0)) {
+               output = yaffs_mkdir(YAFFS_MOUNT_POINT "/test_dir/new_directory/dir",S_IWRITE | S_IREAD);
                if (output < 0) {
                        print_message("failed to create directory\n",2);
                        return -1;
@@ -56,8 +56,8 @@ int test_yaffs_rmdir_ENOTEMPTY_clean(void)
 {
        int output = -1;
        int output2 = -1;
-       if (0 ==  yaffs_access("/yaffs2/test_dir/new_directory/dir",0)) {
-               output = yaffs_rmdir("/yaffs2/test_dir/new_directory/dir");
+       if (0 ==  yaffs_access(YAFFS_MOUNT_POINT "/test_dir/new_directory/dir",0)) {
+               output = yaffs_rmdir(YAFFS_MOUNT_POINT "/test_dir/new_directory/dir");
                if (output < 0) {
                        print_message("failed to remove the directory\n",2);
                        output=1;
index 21f7958..83210a1 100644 (file)
@@ -19,7 +19,7 @@ int test_yaffs_stat_ENOENT(void)
        struct yaffs_stat stat;
        int output=0;
 
-       output=yaffs_stat("/yaffs2/non-existing_file", &stat);
+       output=yaffs_stat(YAFFS_MOUNT_POINT "/non-existing_file", &stat);
        if (output<0){ 
                error_code=yaffs_get_error();
                if (abs(error_code)==ENOENT){
index 5c3ba77..d45ceff 100644 (file)
@@ -23,7 +23,7 @@ int test_yaffs_stat_ENOTDIR(void)
                print_message("failed to create file\n",1);
                return -1;
        }
-       output=yaffs_stat("/yaffs2/test_dir/foo/file", &stat);;
+       output=yaffs_stat(YAFFS_MOUNT_POINT "/test_dir/foo/file", &stat);;
        if (output<0){ 
                error_code=yaffs_get_error();
                if (abs(error_code)==ENOTDIR){
index eac4e92..7c67d73 100644 (file)
@@ -18,7 +18,7 @@ static int output = 0;
 int test_yaffs_symlink_ENOENT(void)
 {
        int error_code = 0;
-       output = yaffs_symlink(FILE_PATH,"/yaffs2//");
+       output = yaffs_symlink(FILE_PATH,YAFFS_MOUNT_POINT "//");
        if (output<0){ 
                error_code=yaffs_get_error();
                if (abs(error_code)==ENOENT){
index 9bb9bb6..41595eb 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/foo/sym_link");
+       output = yaffs_symlink(FILE_PATH,"yaffs2/test_dir/no-such-dir/sym_link");
        if (output<0){ 
                error_code=yaffs_get_error();
                if (abs(error_code)==ENOTDIR){
index 50efc1a..005acb3 100644 (file)
@@ -19,7 +19,7 @@ int test_yaffs_truncate_EISDIR(void)
        int output = 0;
 
 
-       output = yaffs_truncate("/yaffs2/",10);
+       output = yaffs_truncate(YAFFS_MOUNT_POINT "/",10);
        if (output < 0){
                error = yaffs_get_error();
                if (abs(error) == EISDIR){
index d1697d1..970e634 100644 (file)
@@ -20,7 +20,7 @@ int test_yaffs_truncate_ENOENT(void)
        int output=0;
 
 
-       output= yaffs_truncate("/yaffs2/non_existing_file",FILE_SIZE_TRUNCATED );
+       output= yaffs_truncate(YAFFS_MOUNT_POINT "/non_existing_file",FILE_SIZE_TRUNCATED );
        if (output<0){
                error=yaffs_get_error();
                if (abs(error)==ENOENT){
index ce621a0..22555ad 100644 (file)
@@ -24,7 +24,7 @@ int test_yaffs_truncate_ENOTDIR(void)
                return -1;
        }
 
-       output= yaffs_truncate("/yaffs2/test_dir/foo/file",FILE_SIZE_TRUNCATED );
+       output= yaffs_truncate(YAFFS_MOUNT_POINT "/test_dir/foo/file",FILE_SIZE_TRUNCATED );
        if (output<0){
                error=yaffs_get_error();
                if (abs(error)==ENOTDIR){
index c92a041..0e38ef4 100644 (file)
@@ -19,7 +19,7 @@ int test_yaffs_truncate_big_file(void)
        int error=0;
        int output=0;
 
-       output= yaffs_truncate("/yaffs2/foo", YAFFS_TEST_LONG_VALUE);
+       output= yaffs_truncate(YAFFS_MOUNT_POINT "/foo", YAFFS_TEST_LONG_VALUE);
        if (output<0){
                error=yaffs_get_error();
                if (abs(error)==EINVAL){        /*in yaffs EINVAL is used instead of big_file */
index 9875304..f1c284e 100644 (file)
@@ -19,7 +19,7 @@ int test_yaffs_unlink_ENOENT(void)
 {
        int error_code=0;
 
-       handle=yaffs_unlink("/yaffs2/non_existant_file");
+       handle=yaffs_unlink(YAFFS_MOUNT_POINT "/non_existant_file");
        if (handle==-1){
                error_code=yaffs_get_error();
                if (abs(error_code) == ENOENT){
index 89bace3..5368fd7 100644 (file)
@@ -22,7 +22,7 @@ int test_yaffs_unlink_ENOTDIR(void)
                print_message("failed to create file before remounting\n",1);
                return -1;
        }
-       output=yaffs_unlink("/yaffs2/test_dir/foo/file");
+       output=yaffs_unlink(YAFFS_MOUNT_POINT "/test_dir/foo/file");
        if (output==-1){
                error_code=yaffs_get_error();
                if (abs(error_code)==ENOTDIR){