timothy-tests: Change mountpoint names to match test framework
[yaffs2.git] / direct / test-framework / timothy_tests / quick_tests / test_yaffs_stat_ENOTDIR.c
index c6773d32b99ad7c3f260fe8d8e02f578f3cb86e0..d45ceff88a1372f14cdf9a22a3c49c142a79f165 100644 (file)
@@ -18,9 +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';
-       output=yaffs_stat("/yaffs2/foo/file", &stat);;
+
+       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(YAFFS_MOUNT_POINT "/test_dir/foo/file", &stat);;
        if (output<0){ 
                error_code=yaffs_get_error();
                if (abs(error_code)==ENOTDIR){