1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* test/win32ole/test_err_in_callback.rb (teardown): remove tmp file

only when it exists.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29924 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
usa 2010-11-25 01:03:52 +00:00
parent ed637d01d7
commit 69a248a073
2 changed files with 7 additions and 4 deletions

View file

@ -1,3 +1,8 @@
Thu Nov 25 10:03:14 2010 NAKAMURA Usaku <usa@ruby-lang.org>
* test/win32ole/test_err_in_callback.rb (teardown): remove tmp file
only when it exists.
Thu Nov 25 01:38:25 2010 NARUSE, Yui <naruse@ruby-lang.org>
* enc/trans/big5-hkscs-tbl.rb: Update table as HKSCS-2008.

View file

@ -7,7 +7,6 @@ begin
require 'win32ole'
rescue LoadError
end
require 'rbconfig'
if defined?(WIN32OLE)
require 'mkmf'
require 'test/unit'
@ -20,7 +19,7 @@ if defined?(WIN32OLE)
@iopt = $:.map {|e|
" -I " + e
}.join("")
@script = File.dirname(__FILE__) + "/err_in_callback.rb"
@script = File.join(File.dirname(__FILE__), "err_in_callback.rb")
end
end
@ -37,8 +36,7 @@ if defined?(WIN32OLE)
end
def teardown
File.unlink("test_err_in_callback.log")
File.unlink("test_err_in_callback.log") if File.exist?("test_err_in_callback.log")
end
end
end