Skip to content

Commit 1795faa

Browse files
committed
Fixed build tests for JRuby.
1 parent 3877635 commit 1795faa

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

build-tests/atomic_reference_builds_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def atomic_reference_test(clazz, opts = {})
4040
end
4141
end
4242

43-
if jruby?
43+
if jruby? && 'JRUBY' == ENV['TEST_PLATFORM']
4444

4545
describe Concurrent::JavaAtomic do
4646

build-tests/runner.rb

+5-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@
3838
gem uninstall -q -a -I ref
3939
CMD
4040

41-
SUITE_BREAK = "######################################################################\n"
41+
PLATFORM_BREAK = "######################################################################\n"
42+
SUITE_BREAK = "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n"
4243

4344
def platform_specific_extensions?(platform = RUBY_PLATFORM)
4445
EXT_PLATFORMS.keys.include?(platform) &&
@@ -95,7 +96,10 @@ def run_test_suite(files, ext, platform = '')
9596
ok = system(INSTALL_RSPEC_COMMAND)
9697
ok = system(UNINSTALL_GEMS_COMMAND)
9798

99+
puts PLATFORM_BREAK
100+
puts RUBY_PLATFORM
98101
puts SUITE_BREAK
102+
99103
run_test_suite(TEST_FILES, false)
100104
if jruby?
101105
puts SUITE_BREAK

0 commit comments

Comments
 (0)