Skip to content

Commit

Permalink
[Truffle] Ignore specs tagged with solaris on Solaris.
Browse files Browse the repository at this point in the history
  • Loading branch information
eregon committed Nov 22, 2016
1 parent 386573e commit e1beee1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions spec/truffle/truffle.mspec
Expand Up @@ -10,6 +10,10 @@ class MSpecScript
RbConfig::CONFIG['host_os'] == 'linux'
end

def self.solaris?
RbConfig::CONFIG['host_os'] == 'solaris'
end

JRUBY_DIR = File.expand_path('../../..', __FILE__)

set :target, "#{JRUBY_DIR}/bin/jruby#{windows? ? '.bat' : ''}"
Expand Down Expand Up @@ -141,6 +145,11 @@ class MSpecScript
set :xtags, (get(:xtags) || []) + ['linux']
end

if solaris?
# exclude specs tagged with 'solaris'
set :xtags, (get(:xtags) || []) + ['solaris']
end

# Enable features
MSpec.enable_feature :fiber
MSpec.enable_feature :fiber_library
Expand Down

0 comments on commit e1beee1

Please sign in to comment.