Sha256: 5833bf23c6532d9e5dcb26037836d591c2d457ec8e1d9d873f7635be92d2b141

Contents?: true

Size: 454 Bytes

Versions: 5

Compression:

Stored size: 454 Bytes

Contents

# coding: utf-8

require 'minitest/autorun'
require 'open4'
require 'rbconfig'

module Open4
  class TestCase < MiniTest::Unit::TestCase
    include Open4

    # Custom exception class for tests so we don't shadow possible
    # programming errors.
    class MyError < RuntimeError; end

    def on_mri?
      ::Config::CONFIG['ruby_install_name'] == 'ruby'
    end

    def wait_status(cid)
      Process.waitpid2(cid).last.exitstatus
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
open4-1.3.3 test/support/test_case.rb
open4-1.3.2 test/support/test_case.rb
open4-1.3.1 test/support/test_case.rb
open4-1.3.0 test/support/test_case.rb
open4-1.2.0 test/support/test_case.rb