Skip to content

Commit

Permalink
change TEMP->TMPDIR
Browse files Browse the repository at this point in the history
  • Loading branch information
shinokaro committed May 2, 2024
1 parent 8bcf9ef commit 25fddaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_ocra.rb
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def with_env(hash)
end

def with_tmpdir(files = [], path = nil)
tempdirname = path || File.join(ENV['TMP'], ".ocrantest-#{$$}-#{rand 2**32}").tr('\\','/')
tempdirname = path || File.join(ENV['TMPDIR'], ".ocrantest-#{$$}-#{rand 2**32}").tr('\\','/')
mkdir_p tempdirname
begin
cp files, tempdirname
Expand Down

0 comments on commit 25fddaf

Please sign in to comment.