mozilla/ssh_scan

View on GitHub
.github/actions/setup-ruby-1.71.0/test_subprocess.rb

Summary

Maintainability
A
0 mins
Test Coverage
require 'rbconfig'
require 'stringio'

puts "CPPFLAGS: #{RbConfig::CONFIG["CPPFLAGS"]}"

$stderr = StringIO.new
begin
  system RbConfig.ruby, "-e", "p :OK"
  out = $stderr.string
ensure
  $stderr = STDERR
end
abort out unless out.empty?