diff options
Diffstat (limited to 'spec/support/platform_helpers.rb')
-rw-r--r-- | spec/support/platform_helpers.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/support/platform_helpers.rb b/spec/support/platform_helpers.rb index 2fc4a02cf1..492e1eae88 100644 --- a/spec/support/platform_helpers.rb +++ b/spec/support/platform_helpers.rb @@ -151,6 +151,10 @@ def aix? !!(RUBY_PLATFORM =~ /aix/) end +def wpar? + !((ohai[:virtualization] || {})[:wpar_no].nil?) +end + def supports_cloexec? Fcntl.const_defined?('F_SETFD') && Fcntl.const_defined?('FD_CLOEXEC') end |