Mercurial > yaffs-ecoscentric-gpl
comparison direct/python/examples.py @ 337:bd02b2533ec8
Add another test
| author | charles <charles> |
|---|---|
| date | Tue, 05 Jan 2010 22:53:32 +0000 |
| parents | d326b86a50d5 |
| children | 50d5730d01a5 |
comparison
equal
deleted
inserted
replaced
| 336:454310c32ff2 | 337:bd02b2533ec8 |
|---|---|
| 45 | 45 |
| 46 return totalwrite | 46 return totalwrite |
| 47 else : | 47 else : |
| 48 return -1 | 48 return -1 |
| 49 | 49 |
| 50 def yaffs_link_test(dir): | |
| 51 fnamea = dir + '/aaa' | |
| 52 fnameb = dir + '/bbb' | |
| 53 yaffs_unlink(fnamea) | |
| 54 fd = yaffs_open(fnamea,66,0666) | |
| 55 yaffs_link(fnamea,fnameb) | |
| 56 yaffs_ls(dir) | |
| 57 yaffs_unlink(fnamea) | |
| 58 yaffs_ls(dir) | |
| 59 yaffs_unlink(fnameb) | |
| 60 | |
| 61 | |
| 50 root = "/yaffs2" | 62 root = "/yaffs2" |
| 51 | 63 |
| 52 yaffs_StartUp() | 64 yaffs_StartUp() |
| 53 yaffs_mount(root) | 65 yaffs_mount(root) |
| 54 | 66 |
