~ubuntu-branches/ubuntu/raring/jruby/raring

« back to all changes in this revision

Viewing changes to test/test_dir.rb

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Delafond
  • Date: 2010-05-12 15:56:25 UTC
  • mfrom: (1.2.1 upstream) (4.1.1 maverick)
  • Revision ID: james.westby@ubuntu.com-20100512155625-sgdfaj1hn8k84090
Tags: 1.5.0~rc3-1
New upstream release (Closes: #581360).

Show diffs side-by-side

added added

removed removed

Lines of Context:
135
135
    end
136
136
    assert_equal ["#{jar_file}/abc"], Dir["#{jar_file}/abc"]
137
137
  end
138
 
  
 
138
 
 
139
  # JRUBY-4177
 
140
  # FIXME: Excluded due to JRUBY-4082
 
141
  def xxx_test_mktmpdir
 
142
    require 'tmpdir'
 
143
    assert_nothing_raised do
 
144
      Dir.mktmpdir('xx') {}
 
145
    end
 
146
  end
 
147
 
139
148
  if WINDOWS
140
149
    def test_chdir_slash_windows
141
150
      @orig_pwd = Dir.pwd
359
368
    def test_mkdir_on_protected_directory_fails
360
369
      Dir.mkdir("testDir_5") unless File.exists?("testDir_5")
361
370
      File.chmod(0400, 'testDir_5')
362
 
      assert_raises(SystemCallError) do 
 
371
      assert_raises(Errno::EACCES) do
363
372
        Dir.mkdir("testDir_5/another_dir")
364
373
      end
365
374
    end