@Throws(Exception::class) fun testCreateRenameNoClose() { if (dual) return create(igfs, paths(DIR, SUBDIR), null) var os: IgfsOutputStream? = null try { os = igfs.create(FILE, true) igfs.rename(FILE, FILE2) os.close() } finally { javax.swing.text.html.HTML.Tag.U.closeQuiet(os) } }
Test rename on the file when it was opened for write ( create ) and is not closed yet .