summaryrefslogtreecommitdiff
path: root/test/etc/test_etc.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/etc/test_etc.rb')
-rw-r--r--test/etc/test_etc.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/etc/test_etc.rb b/test/etc/test_etc.rb
index 4a099e7df56..2f61ac7919b 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