summaryrefslogtreecommitdiff
path: root/test/fiddle/test_import.rb
diff options
context:
space:
mode:
authorSutou Kouhei <kou@clear-code.com>2020-06-27 07:25:47 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-06-27 23:54:08 +0900
commitae18220f9904c70304bd1672eecadbb3618fc7e5 (patch)
tree26356cc33a9939c1059047cf411a45f3ec26f85d /test/fiddle/test_import.rb
parent9f740acaf960c0d8fa4b72050f057bc157db31ce (diff)
[ruby/fiddle] Add support for variadic arguments
GitHub: fix GH-39 Reported by kojix2. Thanks!!! https://github.com/ruby/fiddle/commit/6c4cb904dc
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3265
Diffstat (limited to 'test/fiddle/test_import.rb')
-rw-r--r--test/fiddle/test_import.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/fiddle/test_import.rb b/test/fiddle/test_import.rb
index fce8b864d9..c56d81c351 100644
--- a/test/fiddle/test_import.rb
+++ b/test/fiddle/test_import.rb
@@ -110,7 +110,7 @@ module Fiddle
assert_equal(SIZEOF_LONG_LONG, LIBC.sizeof("long long")) if defined?(SIZEOF_LONG_LONG)
end
- Fiddle.constants.grep(/\ATYPE_(?!VOID\z)(.*)/) do
+ Fiddle.constants.grep(/\ATYPE_(?!VOID|VARIADIC\z)(.*)/) do
type = $&
size = Fiddle.const_get("SIZEOF_#{$1}")
name = $1.sub(/P\z/,"*").gsub(/_(?!T\z)/, " ").downcase