timothy-tests: Change mountpoint names to match test framework
[yaffs2.git] / direct / test-framework / timothy_tests / quick_tests / test_yaffs_stat_ENOTDIR.c
index ce228057f1592dfcbe26139c91ba026a0a4f7f30..d45ceff88a1372f14cdf9a22a3c49c142a79f165 100644 (file)
@@ -18,13 +18,12 @@ int test_yaffs_stat_ENOTDIR(void)
        int error_code=0;
        struct yaffs_stat stat;
        int output=0;
-       char text[100];
-       text[0] ='\0';
+
        if (yaffs_close(yaffs_open(FILE_PATH,O_CREAT | O_RDWR, FILE_MODE))==-1){
                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){