Sha256: 6ac60c3d90e0316543ce7bf87d752eaa51383c52a52f3185a764b83637b8d213

Contents?: true

Size: 579 Bytes

Versions: 204

Compression:

Stored size: 579 Bytes

Contents

describe Appsignal::Extension, :extension_installation_failure do
  context "when the extension library cannot be loaded" do
    it "prints and logs an error" do
      require "open3"
      _stdout, stderr, _status = Open3.capture3("bin/appsignal --version")
      expect(stderr).to include("ERROR: AppSignal failed to load extension")
      error_message =
        if DependencyHelper.running_jruby?
          "cannot open shared object file"
        else
          "LoadError: cannot load such file"
        end
      expect(stderr).to include(error_message)
    end
  end
end

Version data entries

204 entries across 204 versions & 1 rubygems

Version Path
appsignal-3.7.1-java spec/lib/appsignal/extension_install_failure_spec.rb
appsignal-3.7.1 spec/lib/appsignal/extension_install_failure_spec.rb
appsignal-3.7.0-java spec/lib/appsignal/extension_install_failure_spec.rb
appsignal-3.7.0 spec/lib/appsignal/extension_install_failure_spec.rb
appsignal-3.6.5-java spec/lib/appsignal/extension_install_failure_spec.rb
appsignal-3.6.5 spec/lib/appsignal/extension_install_failure_spec.rb
appsignal-3.6.4-java spec/lib/appsignal/extension_install_failure_spec.rb
appsignal-3.6.4 spec/lib/appsignal/extension_install_failure_spec.rb
appsignal-3.6.3-java spec/lib/appsignal/extension_install_failure_spec.rb
appsignal-3.6.3 spec/lib/appsignal/extension_install_failure_spec.rb
appsignal-3.6.2-java spec/lib/appsignal/extension_install_failure_spec.rb
appsignal-3.6.2 spec/lib/appsignal/extension_install_failure_spec.rb
appsignal-3.6.1-java spec/lib/appsignal/extension_install_failure_spec.rb
appsignal-3.6.1 spec/lib/appsignal/extension_install_failure_spec.rb
appsignal-3.6.0-java spec/lib/appsignal/extension_install_failure_spec.rb
appsignal-3.6.0 spec/lib/appsignal/extension_install_failure_spec.rb
appsignal-3.5.6-java spec/lib/appsignal/extension_install_failure_spec.rb
appsignal-3.5.6 spec/lib/appsignal/extension_install_failure_spec.rb
appsignal-3.5.5-java spec/lib/appsignal/extension_install_failure_spec.rb
appsignal-3.5.5 spec/lib/appsignal/extension_install_failure_spec.rb