Skip to content

Commit

Permalink
spec: skip ext's extension spec for --with-static-linked-ext
Browse files Browse the repository at this point in the history
`resolve_feature_path` doesn't return .so when the given ext is linked
statically by --with-static-linked-ext
  • Loading branch information
kateinoigakukun authored and nobu committed Feb 28, 2022
1 parent 32f356e commit bd1507b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spec/ruby/language/predefined_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1314,6 +1314,7 @@ def obj.foo2; yield; end

it "returns what will be loaded without actual loading, .so file" do
require 'rbconfig'
skip "no dynamically loadable standard extension" if RbConfig::CONFIG["EXTSTATIC"] == "static"

extension, path = $LOAD_PATH.resolve_feature_path('etc')
extension.should == :so
Expand Down

0 comments on commit bd1507b

Please sign in to comment.