diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/etc/test_etc.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/etc/test_etc.rb b/test/etc/test_etc.rb index 4a099e7df5..2f61ac7919 100644 --- a/test/etc/test_etc.rb +++ b/test/etc/test_etc.rb @@ -159,4 +159,9 @@ class TestEtc < Test::Unit::TestCase } end if defined?(Etc::PC_PIPE_BUF) + def test_nprocessors + n = Etc.nprocessors + assert_operator(1, :<=, n) + end + end |