• Download Gist
RMagick-2.13.1-fix-arch-dependent-test.patch
Diff
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
From 02893caaff791ee1a0fcd765df273235068af43f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?V=C3=ADt=20Ondruch?= <vondruch@redhat.com>
Date: Tue, 7 Feb 2012 12:21:49 +0100
Subject: [PATCH] Fix arch dependent test.
 
---
test/Image2.rb | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
 
diff --git a/test/Image2.rb b/test/Image2.rb
index dedf3a5..d2065e2 100644
--- a/test/Image2.rb
+++ b/test/Image2.rb
@@ -582,7 +582,8 @@ class Image2_UT < Test::Unit::TestCase
end
assert_nothing_raised do
res = @img.export_pixels_to_str(0, 0, 10, 10, "I", Magick::LongPixel)
- assert_equal(10*10*4, res.length)
+ # "1.size" used for arch dependent size.
+ assert_equal(10*10*1.size, res.length)
end
assert_nothing_raised do
res = @img.export_pixels_to_str(0, 0, 10, 10, "I", Magick::FloatPixel)
--
1.7.7.6

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.