~ubuntu-branches/ubuntu/quantal/ruby1.9.1/quantal

« back to all changes in this revision

Viewing changes to test/win32ole/test_err_in_callback.rb

  • Committer: Bazaar Package Importer
  • Author(s): Lucas Nussbaum
  • Date: 2011-09-24 19:16:17 UTC
  • mfrom: (1.1.8 upstream) (13.1.7 experimental)
  • Revision ID: james.westby@ubuntu.com-20110924191617-o1qz4rcmqjot8zuy
Tags: 1.9.3~rc1-1
* New upstream release: 1.9.3 RC1.
  + Includes load.c fixes. Closes: #639959.
* Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
  require 'win32ole'
8
8
rescue LoadError
9
9
end
10
 
require 'rbconfig'
11
10
if defined?(WIN32OLE)
12
11
  require 'mkmf'
13
12
  require 'test/unit'
20
19
        @iopt = $:.map {|e|
21
20
          " -I " + e
22
21
        }.join("")
23
 
        @script = File.dirname(__FILE__) + "/err_in_callback.rb"
 
22
        @script = File.join(File.dirname(__FILE__), "err_in_callback.rb")
24
23
      end
25
24
    end
26
25
 
37
36
    end
38
37
 
39
38
    def teardown
40
 
      File.unlink("test_err_in_callback.log")
 
39
      File.unlink("test_err_in_callback.log") if File.exist?("test_err_in_callback.log")
41
40
    end
42
 
 
43
41
  end
44
42
end