Skip to content

Commit

Permalink
Filter out ObjectSpace specs if ObjectSpace is disabled.
Browse files Browse the repository at this point in the history
  • Loading branch information
vvs committed Oct 30, 2009
1 parent d7e5666 commit f3b1158
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
11 changes: 10 additions & 1 deletion spec/jruby.1.8.mspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# detect windows platform:
require 'rbconfig'
require 'java'
require 'jruby'

IKVM = java.lang.System.get_property('java.vm.name') =~ /IKVM\.NET/

Expand All @@ -14,13 +15,21 @@ class MSpecScript
set :language, [ SPEC_DIR + '/language' ]

# Core library specs
set :core, [
CORE_DIRS = [
SPEC_DIR + '/core',

# 1.9
'^' + SPEC_DIR + '/core/basicobject'
]

# Filter out ObjectSpace specs if ObjectSpace is disabled
unless JRuby.objectspace
CORE_DIRS << '^' + SPEC_DIR + '/core/objectspace/_id2ref'
CORE_DIRS << '^' + SPEC_DIR + '/core/objectspace/each_object'
end

set :core, CORE_DIRS

if IKVM
# ftype_spec freezes for some reason under IKVM
set(:core, get(:core) + ['^' + SPEC_DIR + '/core/file'])
Expand Down
3 changes: 0 additions & 3 deletions spec/tags/1.8/ruby/core/objectspace/each_object_tags.txt

This file was deleted.

0 comments on commit f3b1158

Please sign in to comment.