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.5.4-java spec/lib/appsignal/extension_install_failure_spec.rb
appsignal-3.5.4 spec/lib/appsignal/extension_install_failure_spec.rb
appsignal-3.5.3-java spec/lib/appsignal/extension_install_failure_spec.rb
appsignal-3.5.3 spec/lib/appsignal/extension_install_failure_spec.rb
appsignal-3.5.2-java spec/lib/appsignal/extension_install_failure_spec.rb
appsignal-3.5.2 spec/lib/appsignal/extension_install_failure_spec.rb
appsignal-3.5.1-java spec/lib/appsignal/extension_install_failure_spec.rb
appsignal-3.5.1 spec/lib/appsignal/extension_install_failure_spec.rb
appsignal-3.5.0-java spec/lib/appsignal/extension_install_failure_spec.rb
appsignal-3.5.0 spec/lib/appsignal/extension_install_failure_spec.rb
appsignal-3.4.16-java spec/lib/appsignal/extension_install_failure_spec.rb
appsignal-3.4.16 spec/lib/appsignal/extension_install_failure_spec.rb
appsignal-3.4.15-java spec/lib/appsignal/extension_install_failure_spec.rb
appsignal-3.4.15 spec/lib/appsignal/extension_install_failure_spec.rb
appsignal-3.4.14-java spec/lib/appsignal/extension_install_failure_spec.rb
appsignal-3.4.14 spec/lib/appsignal/extension_install_failure_spec.rb
appsignal-3.4.13-java spec/lib/appsignal/extension_install_failure_spec.rb
appsignal-3.4.13 spec/lib/appsignal/extension_install_failure_spec.rb
appsignal-3.4.12-java spec/lib/appsignal/extension_install_failure_spec.rb
appsignal-3.4.12 spec/lib/appsignal/extension_install_failure_spec.rb