summaryrefslogtreecommitdiff
path: root/test/fiddle/test_import.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_import.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_import.rb')
-rw-r--r--test/fiddle/test_import.rb9
1 files changed, 6 insertions, 3 deletions
diff --git a/test/fiddle/test_import.rb b/test/fiddle/test_import.rb
index d792eaf657..62985cfcd3 100644
--- a/test/fiddle/test_import.rb
+++ b/test/fiddle/test_import.rb
@@ -1,6 +1,9 @@
# coding: US-ASCII
-require_relative 'helper'
-require 'fiddle/import'
+begin
+ require_relative 'helper'
+ require 'fiddle/import'
+rescue LoadError
+end
module Fiddle
module LIBC
@@ -134,4 +137,4 @@ module Fiddle
assert_includes(12.00..13.00, r)
end
end
-end
+end if defined?(Fiddle)