diff options
author | kaustubh-d <kaustubh@clogeny.com> | 2013-08-09 10:24:25 -0500 |
---|---|---|
committer | adamedx <adamed@opscode.com> | 2013-08-19 21:24:42 -0700 |
commit | f755e911a2f58ef461dce5f773bc13f4b71be22f (patch) | |
tree | f07efe4e8719bebe7b8fb836b78bd2cdc5387015 /spec/support/platform_helpers.rb | |
parent | bae70fad595be4810b0fc29cc892153279dd2d8b (diff) | |
download | chef-f755e911a2f58ef461dce5f773bc13f4b71be22f.tar.gz |
aix does not allow link creation to nonexistent files.
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 1aea6dfad3..b6afb5e4ff 100644 --- a/spec/support/platform_helpers.rb +++ b/spec/support/platform_helpers.rb @@ -60,6 +60,10 @@ def freebsd? !!(RUBY_PLATFORM =~ /freebsd/) end +def aix? + !!(RUBY_PLATFORM =~ /aix/) +end + def supports_cloexec? Fcntl.const_defined?('F_SETFD') && Fcntl.const_defined?('FD_CLOEXEC') end |