sigar/bindings/ruby/test/loadavg_test.rb

15 lines
271 B
Ruby

$LOAD_PATH.unshift File.dirname(__FILE__)
require 'helper'
class LoadAvgTest < Test::Unit::TestCase
def test_loadavg
begin
loadavg = Sigar.new.loadavg
rescue #XXX SigarNotImplemented (win32)
return
end
assert loadavg.length == 3
end
end