Skip to content

Commit bcaae13

Browse files
committed
realpath in file creation added
1 parent b8c820f commit bcaae13

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test-base/test_base.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,8 @@ def TestBase.find_free_port(port = 1098)
132132
end
133133

134134
def create_file(script_name, lines)
135-
script_path = File.join(TMP_DIR, script_name)
135+
script_path = File.realdirpath(File.join(TMP_DIR, script_name))
136+
136137
File.open(script_path, "w") do |script|
137138
script.printf(lines.join("\n"))
138139
end

0 commit comments

Comments
 (0)