| |
@@ -0,0 +1,108 @@
|
| |
+ diff --git a/spec/concurrent/atomic/atomic_boolean_spec.rb b/spec/concurrent/atomic/atomic_boolean_spec.rb
|
| |
+ index 133b7f2c..9d5a4fe9 100644
|
| |
+ --- a/spec/concurrent/atomic/atomic_boolean_spec.rb
|
| |
+ +++ b/spec/concurrent/atomic/atomic_boolean_spec.rb
|
| |
+ @@ -142,11 +142,11 @@ module Concurrent
|
| |
+ end
|
| |
+ end
|
| |
+
|
| |
+ - if Concurrent.allow_c_extensions?
|
| |
+ - RSpec.describe CAtomicBoolean do
|
| |
+ - it_should_behave_like :atomic_boolean
|
| |
+ - end
|
| |
+ - end
|
| |
+ +# if Concurrent.allow_c_extensions?
|
| |
+ +# RSpec.describe CAtomicBoolean do
|
| |
+ +# it_should_behave_like :atomic_boolean
|
| |
+ +# end
|
| |
+ +# end
|
| |
+
|
| |
+ if Concurrent.on_jruby?
|
| |
+ RSpec.describe JavaAtomicBoolean do
|
| |
+ @@ -165,10 +165,10 @@ module Concurrent
|
| |
+ it 'inherits from JavaAtomicBoolean' do
|
| |
+ expect(AtomicBoolean.ancestors).to include(JavaAtomicBoolean)
|
| |
+ end
|
| |
+ - elsif Concurrent.allow_c_extensions?
|
| |
+ - it 'inherits from CAtomicBoolean' do
|
| |
+ - expect(AtomicBoolean.ancestors).to include(CAtomicBoolean)
|
| |
+ - end
|
| |
+ +# elsif Concurrent.allow_c_extensions?
|
| |
+ +# it 'inherits from CAtomicBoolean' do
|
| |
+ +# expect(AtomicBoolean.ancestors).to include(CAtomicBoolean)
|
| |
+ +# end
|
| |
+ else
|
| |
+ it 'inherits from MutexAtomicBoolean' do
|
| |
+ expect(AtomicBoolean.ancestors).to include(MutexAtomicBoolean)
|
| |
+ diff --git a/spec/concurrent/atomic/atomic_fixnum_spec.rb b/spec/concurrent/atomic/atomic_fixnum_spec.rb
|
| |
+ index 39259b13..a0bb5f96 100644
|
| |
+ --- a/spec/concurrent/atomic/atomic_fixnum_spec.rb
|
| |
+ +++ b/spec/concurrent/atomic/atomic_fixnum_spec.rb
|
| |
+ @@ -204,11 +204,11 @@ module Concurrent
|
| |
+ end
|
| |
+ end
|
| |
+
|
| |
+ - if Concurrent.allow_c_extensions?
|
| |
+ - RSpec.describe CAtomicFixnum do
|
| |
+ - it_should_behave_like :atomic_fixnum
|
| |
+ - end
|
| |
+ - end
|
| |
+ +# if Concurrent.allow_c_extensions?
|
| |
+ +# RSpec.describe CAtomicFixnum do
|
| |
+ +# it_should_behave_like :atomic_fixnum
|
| |
+ +# end
|
| |
+ +# end
|
| |
+
|
| |
+ if Concurrent.on_jruby?
|
| |
+ RSpec.describe JavaAtomicFixnum do
|
| |
+ @@ -227,10 +227,10 @@ module Concurrent
|
| |
+ it 'inherits from JavaAtomicFixnum' do
|
| |
+ expect(AtomicFixnum.ancestors).to include(JavaAtomicFixnum)
|
| |
+ end
|
| |
+ - elsif Concurrent.allow_c_extensions?
|
| |
+ - it 'inherits from CAtomicFixnum' do
|
| |
+ - expect(AtomicFixnum.ancestors).to include(CAtomicFixnum)
|
| |
+ - end
|
| |
+ +# elsif Concurrent.allow_c_extensions?
|
| |
+ +# it 'inherits from CAtomicFixnum' do
|
| |
+ +# expect(AtomicFixnum.ancestors).to include(CAtomicFixnum)
|
| |
+ +# end
|
| |
+ else
|
| |
+ it 'inherits from MutexAtomicFixnum' do
|
| |
+ expect(AtomicFixnum.ancestors).to include(MutexAtomicFixnum)
|
| |
+ diff --git a/spec/concurrent/atomic/atomic_reference_spec.rb b/spec/concurrent/atomic/atomic_reference_spec.rb
|
| |
+ index 2cc0caad..dddaefc1 100644
|
| |
+ --- a/spec/concurrent/atomic/atomic_reference_spec.rb
|
| |
+ +++ b/spec/concurrent/atomic/atomic_reference_spec.rb
|
| |
+ @@ -163,11 +163,11 @@ module Concurrent
|
| |
+ it_should_behave_like :atomic_reference
|
| |
+ end
|
| |
+
|
| |
+ - if Concurrent.allow_c_extensions?
|
| |
+ - RSpec.describe CAtomicReference do
|
| |
+ - it_should_behave_like :atomic_reference
|
| |
+ - end
|
| |
+ - end
|
| |
+ +# if Concurrent.allow_c_extensions?
|
| |
+ +# RSpec.describe CAtomicReference do
|
| |
+ +# it_should_behave_like :atomic_reference
|
| |
+ +# end
|
| |
+ +# end
|
| |
+ if Concurrent.on_jruby?
|
| |
+ RSpec.describe JavaAtomicReference do
|
| |
+ it_should_behave_like :atomic_reference
|
| |
+ @@ -190,10 +190,10 @@ module Concurrent
|
| |
+ it 'inherits from JavaAtomicReference' do
|
| |
+ expect(described_class.ancestors).to include(Concurrent::JavaAtomicReference)
|
| |
+ end
|
| |
+ - elsif Concurrent.allow_c_extensions?
|
| |
+ - it 'inherits from CAtomicReference' do
|
| |
+ - expect(described_class.ancestors).to include(Concurrent::CAtomicReference)
|
| |
+ - end
|
| |
+ +# elsif Concurrent.allow_c_extensions?
|
| |
+ +# it 'inherits from CAtomicReference' do
|
| |
+ +# expect(described_class.ancestors).to include(Concurrent::CAtomicReference)
|
| |
+ +# end
|
| |
+ elsif Concurrent.on_truffleruby?
|
| |
+ it 'inherits from TruffleRubyAtomicReference' do
|
| |
+ expect(described_class.ancestors).to include(Concurrent::TruffleRubyAtomicReference)
|
| |
This will resolve rhbz#20665261.
Due to changes in new release, some more C extension tests had to be disabled.
Builds fine in rawhide scratch build in koji:
https://koji.fedoraproject.org/koji/taskinfo?taskID=98037876