diff --git a/test/app-tap/gh-4983-tnt-e-assert-false-hangs.test.lua b/test/app-tap/gh-4983-tnt-e-assert-false-hangs.test.lua
index 20046d7a5aa0747c50e4ce4c0cc28385cedd991a..79ed8de7aeaab00ddeec24de0247bddfcb8f4a60 100755
--- a/test/app-tap/gh-4983-tnt-e-assert-false-hangs.test.lua
+++ b/test/app-tap/gh-4983-tnt-e-assert-false-hangs.test.lua
@@ -13,7 +13,7 @@ local ffi = require('ffi')
 --
 
 local TARANTOOL_PATH = arg[-1]
-local output_file = fio.abspath('out.txt')
+local output_file = fio.abspath('gh-4983_out.txt')
 local line = ('%s -e "assert(false)" > %s 2>&1 & echo $!'):
         format(TARANTOOL_PATH, output_file)
 
@@ -45,6 +45,7 @@ local res = tap.test('gh-4983-tnt-e-assert-false-hangs', function(test)
     test:like(data, 'assertion failed', 'assertion failure is displayed')
 
     fh:close()
+    os.remove(output_file)
 end)
 
 os.exit(res and 0 or 1)
diff --git a/test/app-tap/gh-5040-inter-mode-isatty-via-errinj.test.lua b/test/app-tap/gh-5040-inter-mode-isatty-via-errinj.test.lua
index 25e2bbc5e4002669f1aa33ecdb698b69a14d56fe..159f30e5709902f98be45b68cce883be4c7a3242 100755
--- a/test/app-tap/gh-5040-inter-mode-isatty-via-errinj.test.lua
+++ b/test/app-tap/gh-5040-inter-mode-isatty-via-errinj.test.lua
@@ -12,7 +12,7 @@ local fio = require('fio')
 --
 
 local TARANTOOL_PATH = arg[-1]
-local output_file = fio.abspath('out.txt')
+local output_file = fio.abspath('gh-5040_out.txt')
 local cmd_end = (' >%s & echo $!'):format(output_file)
 
 -- Like a default timeout for `cond_wait` in test-run