3 require 'sleepy_penguin'
5 class TestSignalFDSigInfo < Test::Unit::TestCase
9 members = SignalFD::SigInfo::MEMBERS
10 assert_equal 16, members.size
11 a = SignalFD::SigInfo.new
12 members.each { |k| assert_equal 0, a.__send__(k) }
16 a = SignalFD::SigInfo.new
17 b = SignalFD::SigInfo.new
20 c = Class.new(SignalFD::SigInfo).new
26 hash = SignalFD::SigInfo.new.to_hash
27 assert_instance_of Hash, hash
28 members = SignalFD::SigInfo::MEMBERS
29 assert_equal members.size, hash.size
30 members.each { |k| assert_equal 0, hash[k] }
32 end if defined?(SleepyPenguin::SignalFD)