Skip to content

Commit 6a17ca0

Browse files
committed
Fixed tests for JavaAtomic.
1 parent 12ba3a8 commit 6a17ca0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

examples/bench_atomic.rb

+2-3
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,8 @@
88

99
require 'concurrent/atomic'
1010

11-
unless defined? Concurrent::CAtomic
12-
warn "[ERROR] C extensions not loaded!"
13-
exit(1)
11+
if RUBY_PLATFORM != 'java' && ! defined? Concurrent::CAtomic
12+
warn "[WARN] C extensions not loaded!"
1413
end
1514

1615
Thread.abort_on_exception = true

0 commit comments

Comments
 (0)