summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/etc/test_etc.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/etc/test_etc.rb b/test/etc/test_etc.rb
index 2eddcf49d7..c15c4f6e1e 100644
--- a/test/etc/test_etc.rb
+++ b/test/etc/test_etc.rb
@@ -169,6 +169,10 @@ class TestEtc < Test::Unit::TestCase
assert_operator(1, :<=, n)
end
+ def test_sysconfdir
+ assert_operator(File, :absolute_path?, Etc.sysconfdir)
+ end if File.method_defined?(:absolute_path?)
+
def test_ractor
return unless Etc.passwd # => skip test if no platform support
Etc.endpwent