Sha256: 681c109f7721736535f884fd1378beeb3d6e1f8f624c98881d3e359d3d891e66

Contents?: true

Size: 541 Bytes

Versions: 13

Compression:

Stored size: 541 Bytes

Contents

# RUBY-839 make sure there is no STDOUT chatter
require 'open3'

class StartUpTest < Test::Unit::TestCase
  def test_should_not_print_to_stdout_when_logging_available
    ruby = 'require "newrelic_rpm"; NewRelic::Agent.manual_start; NewRelic::Agent.shutdown'
    cmd = "bundle exec ruby -e '#{ruby}'"

    sin, sout, serr = Open3.popen3(cmd)

    jruby_noise = "JRuby limited openssl loaded. http://jruby.org/openssl\ngem install jruby-openssl for full support.\n"
    assert_equal '', (sout.read + serr.read).sub(jruby_noise, '')
  end
end

Version data entries

13 entries across 13 versions & 3 rubygems

Version Path
newrelic_rpm-3.5.6.42.beta test/multiverse/suites/agent_only/start_up_test.rb
newrelic_rpm-3.5.5.39.beta test/multiverse/suites/no_load/start_up_test.rb
wd_newrelic_rpm-3.5.5 test/multiverse/suites/no_load/start_up_test.rb
newrelic_rpm-3.5.5.38 test/multiverse/suites/no_load/start_up_test.rb
newrelic_rpm-3.5.5.540.dev test/multiverse/suites/no_load/start_up_test.rb
newrelic_rpm-3.5.4.35.beta test/multiverse/suites/no_load/start_up_test.rb
newrelic_rpm-3.5.4.34 test/multiverse/suites/no_load/start_up_test.rb
newrelic_rpm-3.5.4.33 test/multiverse/suites/no_load/start_up_test.rb
newrelic_rpm-3.5.4.31.beta test/multiverse/suites/no_load/start_up_test.rb
newrelic_rpm-3.5.4.29.beta test/multiverse/suites/no_load/start_up_test.rb
ghazel-newrelic_rpm-3.5.4 test/multiverse/suites/no_load/start_up_test.rb
newrelic_rpm-3.5.3.25 test/multiverse/suites/no_load/start_up_test.rb
newrelic_rpm-3.5.3.24 test/multiverse/suites/no_load/start_up_test.rb