aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/test.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/test.lua b/test/test.lua
index 7463bfea..37f525b2 100644
--- a/test/test.lua
+++ b/test/test.lua
@@ -503,6 +503,10 @@ function test_file_io_open_recent_interactive()
local filename = _HOME .. '/test/file_io/utf8'
io.open_file(filename)
buffer:close()
+ local tmpfile = os.tmpname()
+ io.open_file(tmpfile)
+ buffer:close()
+ os.remove(tmpfile)
io.open_recent_file()
assert_equal(buffer.filename, filename)
buffer:close()