From a717f825f1de8707f602aaba9c541e62a1fc1de8 Mon Sep 17 00:00:00 2001 From: Charles Manning Date: Fri, 8 Jul 2016 13:30:52 +1200 Subject: [PATCH] timothy-tests: Change mountpoint names to match test framework Signed-off-by: Charles Manning --- .../timothy_tests/quick_tests/test_yaffs_access_ENOENT.c | 2 +- .../timothy_tests/quick_tests/test_yaffs_access_ENOTDIR.c | 2 +- .../timothy_tests/quick_tests/test_yaffs_chmod_EINVAL.c | 2 +- .../timothy_tests/quick_tests/test_yaffs_chmod_ENOENT.c | 2 +- .../timothy_tests/quick_tests/test_yaffs_chmod_ENOTDIR.c | 2 +- .../timothy_tests/quick_tests/test_yaffs_link_ENOENT.c | 2 +- .../timothy_tests/quick_tests/test_yaffs_link_ENOTDIR.c | 2 +- .../timothy_tests/quick_tests/test_yaffs_mkdir_EEXIST.c | 2 +- .../timothy_tests/quick_tests/test_yaffs_mkdir_ENOTDIR.c | 2 +- .../timothy_tests/quick_tests/test_yaffs_open_ENOENT.c | 2 +- .../timothy_tests/quick_tests/test_yaffs_open_ENOTDIR.c | 2 +- .../timothy_tests/quick_tests/test_yaffs_rename_EEXISTS.c | 6 +++--- .../timothy_tests/quick_tests/test_yaffs_rename_EINVAL.c | 2 +- .../timothy_tests/quick_tests/test_yaffs_rename_EROFS.c | 4 ++-- .../quick_tests/test_yaffs_rename_dir_ENOENT.c | 2 +- .../quick_tests/test_yaffs_rename_dir_ENOENT2.c | 2 +- .../quick_tests/test_yaffs_rename_dir_not_empty.c | 6 +++--- .../timothy_tests/quick_tests/test_yaffs_rmdir_EBUSY.c | 2 +- .../timothy_tests/quick_tests/test_yaffs_rmdir_EINVAL.c | 2 +- .../timothy_tests/quick_tests/test_yaffs_rmdir_ENOENT.c | 2 +- .../timothy_tests/quick_tests/test_yaffs_rmdir_ENOTDIR.c | 2 +- .../quick_tests/test_yaffs_rmdir_ENOTEMPTY.c | 8 ++++---- .../timothy_tests/quick_tests/test_yaffs_stat_ENOENT.c | 2 +- .../timothy_tests/quick_tests/test_yaffs_stat_ENOTDIR.c | 2 +- .../timothy_tests/quick_tests/test_yaffs_symlink_ENOENT.c | 2 +- .../quick_tests/test_yaffs_symlink_ENOTDIR.c | 2 +- .../quick_tests/test_yaffs_truncate_EISDIR.c | 2 +- .../quick_tests/test_yaffs_truncate_ENOENT.c | 2 +- .../quick_tests/test_yaffs_truncate_ENOTDIR.c | 2 +- .../quick_tests/test_yaffs_truncate_big_file.c | 2 +- .../timothy_tests/quick_tests/test_yaffs_unlink_ENOENT.c | 2 +- .../timothy_tests/quick_tests/test_yaffs_unlink_ENOTDIR.c | 2 +- 32 files changed, 40 insertions(+), 40 deletions(-) diff --git a/direct/test-framework/timothy_tests/quick_tests/test_yaffs_access_ENOENT.c b/direct/test-framework/timothy_tests/quick_tests/test_yaffs_access_ENOENT.c index 8e58b17..cc6fad0 100644 --- a/direct/test-framework/timothy_tests/quick_tests/test_yaffs_access_ENOENT.c +++ b/direct/test-framework/timothy_tests/quick_tests/test_yaffs_access_ENOENT.c @@ -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){ diff --git a/direct/test-framework/timothy_tests/quick_tests/test_yaffs_access_ENOTDIR.c b/direct/test-framework/timothy_tests/quick_tests/test_yaffs_access_ENOTDIR.c index 021c03d..4f48117 100644 --- a/direct/test-framework/timothy_tests/quick_tests/test_yaffs_access_ENOTDIR.c +++ b/direct/test-framework/timothy_tests/quick_tests/test_yaffs_access_ENOTDIR.c @@ -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){ diff --git a/direct/test-framework/timothy_tests/quick_tests/test_yaffs_chmod_EINVAL.c b/direct/test-framework/timothy_tests/quick_tests/test_yaffs_chmod_EINVAL.c index df0205f..6522870 100644 --- a/direct/test-framework/timothy_tests/quick_tests/test_yaffs_chmod_EINVAL.c +++ b/direct/test-framework/timothy_tests/quick_tests/test_yaffs_chmod_EINVAL.c @@ -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(); diff --git a/direct/test-framework/timothy_tests/quick_tests/test_yaffs_chmod_ENOENT.c b/direct/test-framework/timothy_tests/quick_tests/test_yaffs_chmod_ENOENT.c index 1ea97e4..27fa523 100644 --- a/direct/test-framework/timothy_tests/quick_tests/test_yaffs_chmod_ENOENT.c +++ b/direct/test-framework/timothy_tests/quick_tests/test_yaffs_chmod_ENOENT.c @@ -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(); diff --git a/direct/test-framework/timothy_tests/quick_tests/test_yaffs_chmod_ENOTDIR.c b/direct/test-framework/timothy_tests/quick_tests/test_yaffs_chmod_ENOTDIR.c index 86155b2..ad0d1cf 100644 --- a/direct/test-framework/timothy_tests/quick_tests/test_yaffs_chmod_ENOTDIR.c +++ b/direct/test-framework/timothy_tests/quick_tests/test_yaffs_chmod_ENOTDIR.c @@ -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(); diff --git a/direct/test-framework/timothy_tests/quick_tests/test_yaffs_link_ENOENT.c b/direct/test-framework/timothy_tests/quick_tests/test_yaffs_link_ENOENT.c index 5c7f3e4..896ba48 100644 --- a/direct/test-framework/timothy_tests/quick_tests/test_yaffs_link_ENOENT.c +++ b/direct/test-framework/timothy_tests/quick_tests/test_yaffs_link_ENOENT.c @@ -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){ diff --git a/direct/test-framework/timothy_tests/quick_tests/test_yaffs_link_ENOTDIR.c b/direct/test-framework/timothy_tests/quick_tests/test_yaffs_link_ENOTDIR.c index 0d54023..bf666dd 100644 --- a/direct/test-framework/timothy_tests/quick_tests/test_yaffs_link_ENOTDIR.c +++ b/direct/test-framework/timothy_tests/quick_tests/test_yaffs_link_ENOTDIR.c @@ -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){ diff --git a/direct/test-framework/timothy_tests/quick_tests/test_yaffs_mkdir_EEXIST.c b/direct/test-framework/timothy_tests/quick_tests/test_yaffs_mkdir_EEXIST.c index 5c99800..c569531 100644 --- a/direct/test-framework/timothy_tests/quick_tests/test_yaffs_mkdir_EEXIST.c +++ b/direct/test-framework/timothy_tests/quick_tests/test_yaffs_mkdir_EEXIST.c @@ -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){ diff --git a/direct/test-framework/timothy_tests/quick_tests/test_yaffs_mkdir_ENOTDIR.c b/direct/test-framework/timothy_tests/quick_tests/test_yaffs_mkdir_ENOTDIR.c index 709e3ed..f461401 100644 --- a/direct/test-framework/timothy_tests/quick_tests/test_yaffs_mkdir_ENOTDIR.c +++ b/direct/test-framework/timothy_tests/quick_tests/test_yaffs_mkdir_ENOTDIR.c @@ -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){ diff --git a/direct/test-framework/timothy_tests/quick_tests/test_yaffs_open_ENOENT.c b/direct/test-framework/timothy_tests/quick_tests/test_yaffs_open_ENOENT.c index 9456e08..f837e8c 100644 --- a/direct/test-framework/timothy_tests/quick_tests/test_yaffs_open_ENOENT.c +++ b/direct/test-framework/timothy_tests/quick_tests/test_yaffs_open_ENOENT.c @@ -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){ diff --git a/direct/test-framework/timothy_tests/quick_tests/test_yaffs_open_ENOTDIR.c b/direct/test-framework/timothy_tests/quick_tests/test_yaffs_open_ENOTDIR.c index 6b0fc98..45337fd 100644 --- a/direct/test-framework/timothy_tests/quick_tests/test_yaffs_open_ENOTDIR.c +++ b/direct/test-framework/timothy_tests/quick_tests/test_yaffs_open_ENOTDIR.c @@ -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){ diff --git a/direct/test-framework/timothy_tests/quick_tests/test_yaffs_rename_EEXISTS.c b/direct/test-framework/timothy_tests/quick_tests/test_yaffs_rename_EEXISTS.c index 82d29bb..f642b7d 100644 --- a/direct/test-framework/timothy_tests/quick_tests/test_yaffs_rename_EEXISTS.c +++ b/direct/test-framework/timothy_tests/quick_tests/test_yaffs_rename_EEXISTS.c @@ -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; diff --git a/direct/test-framework/timothy_tests/quick_tests/test_yaffs_rename_EINVAL.c b/direct/test-framework/timothy_tests/quick_tests/test_yaffs_rename_EINVAL.c index d1bb6bd..be5cc87 100644 --- a/direct/test-framework/timothy_tests/quick_tests/test_yaffs_rename_EINVAL.c +++ b/direct/test-framework/timothy_tests/quick_tests/test_yaffs_rename_EINVAL.c @@ -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){ diff --git a/direct/test-framework/timothy_tests/quick_tests/test_yaffs_rename_EROFS.c b/direct/test-framework/timothy_tests/quick_tests/test_yaffs_rename_EROFS.c index 7c8aa76..2a5765f 100644 --- a/direct/test-framework/timothy_tests/quick_tests/test_yaffs_rename_EROFS.c +++ b/direct/test-framework/timothy_tests/quick_tests/test_yaffs_rename_EROFS.c @@ -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; diff --git a/direct/test-framework/timothy_tests/quick_tests/test_yaffs_rename_dir_ENOENT.c b/direct/test-framework/timothy_tests/quick_tests/test_yaffs_rename_dir_ENOENT.c index 059e0b9..8e3b564 100644 --- a/direct/test-framework/timothy_tests/quick_tests/test_yaffs_rename_dir_ENOENT.c +++ b/direct/test-framework/timothy_tests/quick_tests/test_yaffs_rename_dir_ENOENT.c @@ -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){ diff --git a/direct/test-framework/timothy_tests/quick_tests/test_yaffs_rename_dir_ENOENT2.c b/direct/test-framework/timothy_tests/quick_tests/test_yaffs_rename_dir_ENOENT2.c index 2e2cb28..7f02b33 100644 --- a/direct/test-framework/timothy_tests/quick_tests/test_yaffs_rename_dir_ENOENT2.c +++ b/direct/test-framework/timothy_tests/quick_tests/test_yaffs_rename_dir_ENOENT2.c @@ -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){ diff --git a/direct/test-framework/timothy_tests/quick_tests/test_yaffs_rename_dir_not_empty.c b/direct/test-framework/timothy_tests/quick_tests/test_yaffs_rename_dir_not_empty.c index bc6f01f..c0de1c6 100644 --- a/direct/test-framework/timothy_tests/quick_tests/test_yaffs_rename_dir_not_empty.c +++ b/direct/test-framework/timothy_tests/quick_tests/test_yaffs_rename_dir_not_empty.c @@ -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; diff --git a/direct/test-framework/timothy_tests/quick_tests/test_yaffs_rmdir_EBUSY.c b/direct/test-framework/timothy_tests/quick_tests/test_yaffs_rmdir_EBUSY.c index 482ad16..403e685 100644 --- a/direct/test-framework/timothy_tests/quick_tests/test_yaffs_rmdir_EBUSY.c +++ b/direct/test-framework/timothy_tests/quick_tests/test_yaffs_rmdir_EBUSY.c @@ -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){ diff --git a/direct/test-framework/timothy_tests/quick_tests/test_yaffs_rmdir_EINVAL.c b/direct/test-framework/timothy_tests/quick_tests/test_yaffs_rmdir_EINVAL.c index 3518ae2..3fa4f56 100644 --- a/direct/test-framework/timothy_tests/quick_tests/test_yaffs_rmdir_EINVAL.c +++ b/direct/test-framework/timothy_tests/quick_tests/test_yaffs_rmdir_EINVAL.c @@ -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){ diff --git a/direct/test-framework/timothy_tests/quick_tests/test_yaffs_rmdir_ENOENT.c b/direct/test-framework/timothy_tests/quick_tests/test_yaffs_rmdir_ENOENT.c index 8ac1f16..192e3d6 100644 --- a/direct/test-framework/timothy_tests/quick_tests/test_yaffs_rmdir_ENOENT.c +++ b/direct/test-framework/timothy_tests/quick_tests/test_yaffs_rmdir_ENOENT.c @@ -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){ diff --git a/direct/test-framework/timothy_tests/quick_tests/test_yaffs_rmdir_ENOTDIR.c b/direct/test-framework/timothy_tests/quick_tests/test_yaffs_rmdir_ENOTDIR.c index 412bd3d..f50230d 100644 --- a/direct/test-framework/timothy_tests/quick_tests/test_yaffs_rmdir_ENOTDIR.c +++ b/direct/test-framework/timothy_tests/quick_tests/test_yaffs_rmdir_ENOTDIR.c @@ -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){ diff --git a/direct/test-framework/timothy_tests/quick_tests/test_yaffs_rmdir_ENOTEMPTY.c b/direct/test-framework/timothy_tests/quick_tests/test_yaffs_rmdir_ENOTEMPTY.c index 5d881b0..3c198bd 100644 --- a/direct/test-framework/timothy_tests/quick_tests/test_yaffs_rmdir_ENOTEMPTY.c +++ b/direct/test-framework/timothy_tests/quick_tests/test_yaffs_rmdir_ENOTEMPTY.c @@ -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; diff --git a/direct/test-framework/timothy_tests/quick_tests/test_yaffs_stat_ENOENT.c b/direct/test-framework/timothy_tests/quick_tests/test_yaffs_stat_ENOENT.c index 21f7958..83210a1 100644 --- a/direct/test-framework/timothy_tests/quick_tests/test_yaffs_stat_ENOENT.c +++ b/direct/test-framework/timothy_tests/quick_tests/test_yaffs_stat_ENOENT.c @@ -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){ diff --git a/direct/test-framework/timothy_tests/quick_tests/test_yaffs_stat_ENOTDIR.c b/direct/test-framework/timothy_tests/quick_tests/test_yaffs_stat_ENOTDIR.c index 5c3ba77..d45ceff 100644 --- a/direct/test-framework/timothy_tests/quick_tests/test_yaffs_stat_ENOTDIR.c +++ b/direct/test-framework/timothy_tests/quick_tests/test_yaffs_stat_ENOTDIR.c @@ -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){ diff --git a/direct/test-framework/timothy_tests/quick_tests/test_yaffs_symlink_ENOENT.c b/direct/test-framework/timothy_tests/quick_tests/test_yaffs_symlink_ENOENT.c index eac4e92..7c67d73 100644 --- a/direct/test-framework/timothy_tests/quick_tests/test_yaffs_symlink_ENOENT.c +++ b/direct/test-framework/timothy_tests/quick_tests/test_yaffs_symlink_ENOENT.c @@ -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){ diff --git a/direct/test-framework/timothy_tests/quick_tests/test_yaffs_symlink_ENOTDIR.c b/direct/test-framework/timothy_tests/quick_tests/test_yaffs_symlink_ENOTDIR.c index 9bb9bb6..41595eb 100644 --- a/direct/test-framework/timothy_tests/quick_tests/test_yaffs_symlink_ENOTDIR.c +++ b/direct/test-framework/timothy_tests/quick_tests/test_yaffs_symlink_ENOTDIR.c @@ -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){ diff --git a/direct/test-framework/timothy_tests/quick_tests/test_yaffs_truncate_EISDIR.c b/direct/test-framework/timothy_tests/quick_tests/test_yaffs_truncate_EISDIR.c index 50efc1a..005acb3 100644 --- a/direct/test-framework/timothy_tests/quick_tests/test_yaffs_truncate_EISDIR.c +++ b/direct/test-framework/timothy_tests/quick_tests/test_yaffs_truncate_EISDIR.c @@ -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){ diff --git a/direct/test-framework/timothy_tests/quick_tests/test_yaffs_truncate_ENOENT.c b/direct/test-framework/timothy_tests/quick_tests/test_yaffs_truncate_ENOENT.c index d1697d1..970e634 100644 --- a/direct/test-framework/timothy_tests/quick_tests/test_yaffs_truncate_ENOENT.c +++ b/direct/test-framework/timothy_tests/quick_tests/test_yaffs_truncate_ENOENT.c @@ -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){ diff --git a/direct/test-framework/timothy_tests/quick_tests/test_yaffs_truncate_ENOTDIR.c b/direct/test-framework/timothy_tests/quick_tests/test_yaffs_truncate_ENOTDIR.c index ce621a0..22555ad 100644 --- a/direct/test-framework/timothy_tests/quick_tests/test_yaffs_truncate_ENOTDIR.c +++ b/direct/test-framework/timothy_tests/quick_tests/test_yaffs_truncate_ENOTDIR.c @@ -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){ diff --git a/direct/test-framework/timothy_tests/quick_tests/test_yaffs_truncate_big_file.c b/direct/test-framework/timothy_tests/quick_tests/test_yaffs_truncate_big_file.c index c92a041..0e38ef4 100644 --- a/direct/test-framework/timothy_tests/quick_tests/test_yaffs_truncate_big_file.c +++ b/direct/test-framework/timothy_tests/quick_tests/test_yaffs_truncate_big_file.c @@ -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 */ diff --git a/direct/test-framework/timothy_tests/quick_tests/test_yaffs_unlink_ENOENT.c b/direct/test-framework/timothy_tests/quick_tests/test_yaffs_unlink_ENOENT.c index 9875304..f1c284e 100644 --- a/direct/test-framework/timothy_tests/quick_tests/test_yaffs_unlink_ENOENT.c +++ b/direct/test-framework/timothy_tests/quick_tests/test_yaffs_unlink_ENOENT.c @@ -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){ diff --git a/direct/test-framework/timothy_tests/quick_tests/test_yaffs_unlink_ENOTDIR.c b/direct/test-framework/timothy_tests/quick_tests/test_yaffs_unlink_ENOTDIR.c index 89bace3..5368fd7 100644 --- a/direct/test-framework/timothy_tests/quick_tests/test_yaffs_unlink_ENOTDIR.c +++ b/direct/test-framework/timothy_tests/quick_tests/test_yaffs_unlink_ENOTDIR.c @@ -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){ -- 2.30.2