~ubuntu-branches/ubuntu/trusty/ruby1.9/trusty

« back to all changes in this revision

Viewing changes to test/ruby/test_file.rb

  • Committer: Bazaar Package Importer
  • Author(s): Lucas Nussbaum
  • Date: 2006-05-08 22:23:12 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20060508222312-w2wqeaz030ifi59j
Tags: 1.9.0+20060423-3ubuntu1
* Resynchronized with Debian.
* Only change from Debian is the addition of
  debian/patches/903_sparc_fix_define.patch to fix illegal instructions
  at runtime on sparc. (change from 1.9.0+20050921-1ubuntu1)

Show diffs side-by-side

added added

removed removed

Lines of Context:
99
99
    assert_equal(?a, f.getc)
100
100
  end
101
101
 
 
102
  def test_s_chown
 
103
    assert_nothing_raised { File.chown -1, -1 }
 
104
    assert_nothing_raised { File.chown nil, nil }
 
105
  end
 
106
 
 
107
  def test_chown
 
108
    assert_nothing_raised {
 
109
      File.open(__FILE__) {|f| f.chown -1, -1 }
 
110
    }
 
111
    # [ruby-dev:27140]
 
112
    assert_nothing_raised {
 
113
      File.open(__FILE__) {|f| f.chown nil, nil }
 
114
    }
 
115
  end
 
116
 
102
117
end