yaffs Yet more tests for quick tests.
[yaffs2.git] / direct / timothy_tests / quick_tests / test_yaffs_write.c
index dbd17e592b91421c2a4b9bd7b4d296a55fda6b1e..cd5a61ffec468a8fd6189f9ae5ec968a23643eb5 100644 (file)
@@ -27,5 +27,10 @@ int test_yaffs_write(void){
 }
 
 int test_yaffs_write_clean(void){
-       return yaffs_close(handle);
+       if (handle>=0){
+               return yaffs_close(handle);
+       }
+       else {
+               return 1; /* no handle was opened so there is no need to close a handle */
+       }       
 }