diff options
author | Austin Ziegler <austin@rubyforge.org> | 2008-02-26 22:54:48 +0000 |
---|---|---|
committer | Austin Ziegler <austin@rubyforge.org> | 2008-02-26 22:54:48 +0000 |
commit | 79f7205cc94023191c47d9e48e33e87aae499fef (patch) | |
tree | 118d66437185a69e8f2e0eb8f1aae979dccef022 | |
parent | d34f086c375eb3acad6219d520331b3c5ac0e5ed (diff) | |
download | diff-lcs-79f7205cc94023191c47d9e48e33e87aae499fef.tar.gz |
Fixing a problem with Ruby 1.9; there are known test failures that will be fixed later. Maybe.
-rw-r--r-- | minitar/trunk/tests/tc_tar.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/minitar/trunk/tests/tc_tar.rb b/minitar/trunk/tests/tc_tar.rb index 73e9791..a6261f1 100644 --- a/minitar/trunk/tests/tc_tar.rb +++ b/minitar/trunk/tests/tc_tar.rb @@ -473,7 +473,7 @@ class TC_Tar__Input < Test::Unit::TestCase ] TEST_DATA_CONTENTS = [ - [ "data", 0, 010644 ], + [ "data", 0, 040755 ], [ "data/file1", 16, 010644 ], [ "data/file2", 16, 010644 ], [ "data/__dir__", 0, 010644 ], @@ -532,7 +532,7 @@ class TC_Tar__Input < Test::Unit::TestCase assert_equal(TEST_CONTENTS[ii][1], File.stat(name).size) end - assert_equal(TEST_CONTENTS[ii][2], File.stat(name).mode) unless RUBY_PLATFORM =~ /win32/ + assert_equal(TEST_CONTENTS[ii][2], File.stat(name).mode & 0777) unless RUBY_PLATFORM =~ /win32/ if 0 == ii begin |