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.13.1-java spec/lib/appsignal/extension_install_failure_spec.rb
appsignal-3.13.1 spec/lib/appsignal/extension_install_failure_spec.rb
appsignal-3.13.1.alpha.1-java spec/lib/appsignal/extension_install_failure_spec.rb
appsignal-3.13.1.alpha.1 spec/lib/appsignal/extension_install_failure_spec.rb
appsignal-3.13.0-java spec/lib/appsignal/extension_install_failure_spec.rb
appsignal-3.13.0 spec/lib/appsignal/extension_install_failure_spec.rb
appsignal-3.12.6-java spec/lib/appsignal/extension_install_failure_spec.rb
appsignal-3.12.6 spec/lib/appsignal/extension_install_failure_spec.rb
appsignal-3.12.5-java spec/lib/appsignal/extension_install_failure_spec.rb
appsignal-3.12.5 spec/lib/appsignal/extension_install_failure_spec.rb
appsignal-3.12.4-java spec/lib/appsignal/extension_install_failure_spec.rb
appsignal-3.12.4 spec/lib/appsignal/extension_install_failure_spec.rb
appsignal-3.12.3-java spec/lib/appsignal/extension_install_failure_spec.rb
appsignal-3.12.3 spec/lib/appsignal/extension_install_failure_spec.rb
appsignal-3.12.2-java spec/lib/appsignal/extension_install_failure_spec.rb
appsignal-3.12.2 spec/lib/appsignal/extension_install_failure_spec.rb
appsignal-3.12.1-java spec/lib/appsignal/extension_install_failure_spec.rb
appsignal-3.12.1 spec/lib/appsignal/extension_install_failure_spec.rb
appsignal-3.12.0-java spec/lib/appsignal/extension_install_failure_spec.rb
appsignal-3.12.0 spec/lib/appsignal/extension_install_failure_spec.rb