Mercurial > yaffs-ecoscentric
comparison direct/dtest.c @ 245:87755cd7272a
Some test case changes
| author | charles |
|---|---|
| date | Wed, 26 Nov 2008 20:49:36 +0000 |
| parents | 7fb6de310d02 |
| children | a8738fee77c1 |
comparison
equal
deleted
inserted
replaced
| 244:9fd436f3a10b | 245:87755cd7272a |
|---|---|
| 2279 for(i = 0; i < NSMALLFILES; i++) | 2279 for(i = 0; i < NSMALLFILES; i++) |
| 2280 yaffs_close(h[i]); | 2280 yaffs_close(h[i]); |
| 2281 | 2281 |
| 2282 yaffs_unmount(mountpt); | 2282 yaffs_unmount(mountpt); |
| 2283 } | 2283 } |
| 2284 | |
| 2285 void rmdir_test(const char *mountpt) | |
| 2286 { | |
| 2287 char name[100]; | |
| 2288 yaffs_StartUp(); | |
| 2289 | |
| 2290 yaffs_mount(mountpt); | |
| 2291 | |
| 2292 strcpy(name,mountpt); | |
| 2293 strcat(name,"/"); | |
| 2294 strcat(name,"hello"); | |
| 2295 yaffs_mkdir(name,0666); | |
| 2296 yaffs_rmdir(name); | |
| 2297 yaffs_unmount(mountpt); | |
| 2298 } | |
| 2284 | 2299 |
| 2285 | 2300 |
| 2286 int random_seed; | 2301 int random_seed; |
| 2302 int simulate_power_failure; | |
| 2287 | 2303 |
| 2288 int main(int argc, char *argv[]) | 2304 int main(int argc, char *argv[]) |
| 2289 { | 2305 { |
| 2290 random_seed = time(NULL); | 2306 random_seed = time(NULL); |
| 2291 //return long_test(argc,argv); | 2307 //return long_test(argc,argv); |
| 2298 //huge_directory_test_on_path("/ram2k"); | 2314 //huge_directory_test_on_path("/ram2k"); |
| 2299 | 2315 |
| 2300 //yaffs_backward_scan_test("/flash/flash"); | 2316 //yaffs_backward_scan_test("/flash/flash"); |
| 2301 // yaffs_device_flush_test("/flash/flash"); | 2317 // yaffs_device_flush_test("/flash/flash"); |
| 2302 | 2318 |
| 2303 rename_over_test("//////////////////flash///////////////////yaffs1///////////"); | 2319 //rename_over_test("//////////////////flash///////////////////yaffs1///////////"); |
| 2320 | |
| 2321 rmdir_test("M18-1"); | |
| 2304 | 2322 |
| 2305 //scan_pattern_test("/flash",10000,10); | 2323 //scan_pattern_test("/flash",10000,10); |
| 2306 //short_scan_test("/flash/flash",40000,200); | 2324 //short_scan_test("/flash/flash",40000,200); |
| 2307 //small_mount_test("/flash/flash",1000); | 2325 //small_mount_test("/flash/flash",1000); |
| 2308 //small_overwrite_test("/flash/flash",1000); | 2326 //small_overwrite_test("/flash/flash",1000); |
