diff options
author | Sutou Kouhei <kou@cozmixng.org> | 2020-06-27 11:01:22 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-06-27 23:54:09 +0900 |
commit | f2bcdc7283f2137e0916e251df3a52c40b1f6151 (patch) | |
tree | e873f5b3b06155927ba5dd2b9f670d59c201e81e /test | |
parent | a40b390b1775eec264fedc0bbd4504861e61c7e4 (diff) |
[ruby/fiddle] Support MSWIN (#43)
https://github.com/ruby/fiddle/commit/f16e7ff6e0
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3265
Diffstat (limited to 'test')
-rw-r--r-- | test/fiddle/test_func.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/fiddle/test_func.rb b/test/fiddle/test_func.rb index 376f8786da..cf71a4b123 100644 --- a/test/fiddle/test_func.rb +++ b/test/fiddle/test_func.rb @@ -86,7 +86,12 @@ module Fiddle else snprintf_name = "snprintf" end - snprintf = Function.new(@libc[snprintf_name], + begin + snprintf_pointer = @libc[snprintf_name] + rescue Fiddle::DLError + skip "Can't find #{snprintf_name}: #{$!.message}" + end + snprintf = Function.new(snprintf_pointer, [ TYPE_VOIDP, TYPE_SIZE_T, |