summaryrefslogtreecommitdiff
path: root/test/fiddle/test_c_union_entity.rb
diff options
context:
space:
mode:
authorktsj <ktsj@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-05-25 14:29:02 +0000
committerktsj <ktsj@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-05-25 14:29:02 +0000
commit1dafd4ebf1a88e0a8298fe60e7632af8584da29a (patch)
treecd6f90640033c8593f7c1e2e8d85f1bd5320a7be /test/fiddle/test_c_union_entity.rb
parent2ee7d727900c023bc31a30efdb763dfa31a1404c (diff)
* test/fiddle/test_c_struct_entry.rb,
test/fiddle/test_c_union_entity.rb, test/fiddle/test_cparser.rb, test/fiddle/test_func.rb, test/fiddle/test_handle.rb, test/fiddle/test_import.rb, test/fiddle/test_pointer.rb: don't run test if the system don't support fiddle. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40930 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/fiddle/test_c_union_entity.rb')
-rw-r--r--test/fiddle/test_c_union_entity.rb9
1 files changed, 6 insertions, 3 deletions
diff --git a/test/fiddle/test_c_union_entity.rb b/test/fiddle/test_c_union_entity.rb
index d27c9edb52..165c4ecacb 100644
--- a/test/fiddle/test_c_union_entity.rb
+++ b/test/fiddle/test_c_union_entity.rb
@@ -1,6 +1,9 @@
-require_relative 'helper'
+begin
+ require_relative 'helper'
+ require 'fiddle/struct'
+rescue LoadError
+end
-require 'fiddle/struct'
module Fiddle
class TestCUnionEntity < TestCase
@@ -28,4 +31,4 @@ module Fiddle
assert_equal 1, union['int']
end
end
-end
+end if defined?(Fiddle)