Mock Version: 3.5 Mock Version: 3.5 Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target noarch --nodeps /builddir/build/SPECS/rubygem-nifti.spec'], chrootPath='/var/lib/mock/f38-build-side-42-init-devel-941432-28757/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=864000uid=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target noarch --nodeps /builddir/build/SPECS/rubygem-nifti.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: noarch Building for target noarch setting SOURCE_DATE_EPOCH=1674172800 Wrote: /builddir/build/SRPMS/rubygem-nifti-0.0.2-20.fc38.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target noarch --nodeps /builddir/build/SPECS/rubygem-nifti.spec'], chrootPath='/var/lib/mock/f38-build-side-42-init-devel-941432-28757/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=864000uid=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target noarch --nodeps /builddir/build/SPECS/rubygem-nifti.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: noarch Building for target noarch setting SOURCE_DATE_EPOCH=1674172800 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.mleYrj + umask 022 + cd /builddir/build/BUILD + gem unpack /builddir/build/SOURCES/nifti-0.0.2.gem Unpacked gem: '/builddir/build/BUILD/nifti-0.0.2' + cd /builddir/build/BUILD + cd nifti-0.0.2 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + gem spec /builddir/build/SOURCES/nifti-0.0.2.gem -l --ruby + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.WhtRpg + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd nifti-0.0.2 + gem build nifti.gemspec WARNING: license value 'LGPLv3' is invalid. Use a license identifier from http://spdx.org/licenses or 'Nonstandard' for a nonstandard license. Did you mean 'LGPLLR'? WARNING: description and summary are identical WARNING: open-ended dependency on rspec (>= 0, development) is not recommended use a bounded requirement, such as '~> x.y' WARNING: open-ended dependency on mocha (>= 0, development) is not recommended use a bounded requirement, such as '~> x.y' WARNING: open-ended dependency on cucumber (>= 0, development) is not recommended use a bounded requirement, such as '~> x.y' WARNING: open-ended dependency on narray (>= 0, development) is not recommended use a bounded requirement, such as '~> x.y' WARNING: open-ended dependency on simplecov (>= 0, development) is not recommended use a bounded requirement, such as '~> x.y' WARNING: See https://guides.rubygems.org/specification-reference/ for help Successfully built RubyGem Name: nifti Version: 0.0.2 File: nifti-0.0.2.gem + mkdir -p ./usr/share/gems + CONFIGURE_ARGS='--with-cflags='\''-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer'\'' --with-cxxflags='\''-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer'\'' --with-ldflags='\''-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 '\'' ' + gem install -V --local --build-root . --force --document=ri,rdoc nifti-0.0.2.gem WARNING: You build with buildroot. Build root: /builddir/build/BUILD/nifti-0.0.2 Bin dir: /builddir/build/BUILD/nifti-0.0.2/usr/bin Gem home: /builddir/build/BUILD/nifti-0.0.2/usr/share/gems Plugins dir: /builddir/build/BUILD/nifti-0.0.2/usr/share/gems/plugins /builddir/build/BUILD/nifti-0.0.2/usr/share/gems/gems/nifti-0.0.2/.gitignore /builddir/build/BUILD/nifti-0.0.2/usr/share/gems/gems/nifti-0.0.2/CHANGELOG /builddir/build/BUILD/nifti-0.0.2/usr/share/gems/gems/nifti-0.0.2/Gemfile /builddir/build/BUILD/nifti-0.0.2/usr/share/gems/gems/nifti-0.0.2/LICENSE /builddir/build/BUILD/nifti-0.0.2/usr/share/gems/gems/nifti-0.0.2/README.markdown /builddir/build/BUILD/nifti-0.0.2/usr/share/gems/gems/nifti-0.0.2/Rakefile /builddir/build/BUILD/nifti-0.0.2/usr/share/gems/gems/nifti-0.0.2/features/n_image.feature /builddir/build/BUILD/nifti-0.0.2/usr/share/gems/gems/nifti-0.0.2/features/step_definitions/n_image_steps.rb /builddir/build/BUILD/nifti-0.0.2/usr/share/gems/gems/nifti-0.0.2/features/support/env.rb /builddir/build/BUILD/nifti-0.0.2/usr/share/gems/gems/nifti-0.0.2/features/support/fixtures/brain_dti.nii.gz /builddir/build/BUILD/nifti-0.0.2/usr/share/gems/gems/nifti-0.0.2/features/support/hooks.rb /builddir/build/BUILD/nifti-0.0.2/usr/share/gems/gems/nifti-0.0.2/lib/nifti.rb /builddir/build/BUILD/nifti-0.0.2/usr/share/gems/gems/nifti-0.0.2/lib/nifti/constants.rb /builddir/build/BUILD/nifti-0.0.2/usr/share/gems/gems/nifti-0.0.2/lib/nifti/n_image.rb /builddir/build/BUILD/nifti-0.0.2/usr/share/gems/gems/nifti-0.0.2/lib/nifti/n_object.rb /builddir/build/BUILD/nifti-0.0.2/usr/share/gems/gems/nifti-0.0.2/lib/nifti/n_read.rb /builddir/build/BUILD/nifti-0.0.2/usr/share/gems/gems/nifti-0.0.2/lib/nifti/n_write.rb /builddir/build/BUILD/nifti-0.0.2/usr/share/gems/gems/nifti-0.0.2/lib/nifti/stream.rb /builddir/build/BUILD/nifti-0.0.2/usr/share/gems/gems/nifti-0.0.2/lib/nifti/version.rb /builddir/build/BUILD/nifti-0.0.2/usr/share/gems/gems/nifti-0.0.2/nifti.gemspec /builddir/build/BUILD/nifti-0.0.2/usr/share/gems/gems/nifti-0.0.2/spec/custom_matchers.rb /builddir/build/BUILD/nifti-0.0.2/usr/share/gems/gems/nifti-0.0.2/spec/fixtures/3plLoc.nii /builddir/build/BUILD/nifti-0.0.2/usr/share/gems/gems/nifti-0.0.2/spec/fixtures/3plLoc.nii.gz /builddir/build/BUILD/nifti-0.0.2/usr/share/gems/gems/nifti-0.0.2/spec/interactive/compare.rb /builddir/build/BUILD/nifti-0.0.2/usr/share/gems/gems/nifti-0.0.2/spec/nifti/n_image_spec.rb /builddir/build/BUILD/nifti-0.0.2/usr/share/gems/gems/nifti-0.0.2/spec/nifti/n_object_spec.rb /builddir/build/BUILD/nifti-0.0.2/usr/share/gems/gems/nifti-0.0.2/spec/nifti/n_read_spec.rb /builddir/build/BUILD/nifti-0.0.2/usr/share/gems/gems/nifti-0.0.2/spec/nifti/n_write_spec.rb /builddir/build/BUILD/nifti-0.0.2/usr/share/gems/gems/nifti-0.0.2/spec/nifti/stream_spec.rb /builddir/build/BUILD/nifti-0.0.2/usr/share/gems/gems/nifti-0.0.2/spec/spec_helper.rb Successfully installed nifti-0.0.2 Parsing documentation for nifti-0.0.2 Parsing sources... 12% [ 1/ 8] lib/nifti.rb 25% [ 2/ 8] lib/nifti/constants.rb 37% [ 3/ 8] lib/nifti/n_image.rb 50% [ 4/ 8] lib/nifti/n_object.rb 62% [ 5/ 8] lib/nifti/n_read.rb 75% [ 6/ 8] lib/nifti/n_write.rb 87% [ 7/ 8] lib/nifti/stream.rb 100% [ 8/ 8] lib/nifti/version.rb Installing ri documentation for nifti-0.0.2 Installing darkfish documentation for nifti-0.0.2 Done installing documentation for nifti after 8 seconds 1 gem installed + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.bpqq3c + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/rubygem-nifti-0.0.2-20.fc38.noarch '!=' / ']' + rm -rf /builddir/build/BUILDROOT/rubygem-nifti-0.0.2-20.fc38.noarch ++ dirname /builddir/build/BUILDROOT/rubygem-nifti-0.0.2-20.fc38.noarch + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/rubygem-nifti-0.0.2-20.fc38.noarch + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd nifti-0.0.2 + mkdir -p /builddir/build/BUILDROOT/rubygem-nifti-0.0.2-20.fc38.noarch/usr/share/gems + cp -a ./usr/share/gems/build_info ./usr/share/gems/cache ./usr/share/gems/doc ./usr/share/gems/extensions ./usr/share/gems/gems ./usr/share/gems/plugins ./usr/share/gems/specifications /builddir/build/BUILDROOT/rubygem-nifti-0.0.2-20.fc38.noarch/usr/share/gems/ + /usr/bin/find-debuginfo -j8 --strict-build-id -m -i --build-id-seed 0.0.2-20.fc38 --unique-debug-suffix -0.0.2-20.fc38.noarch --unique-debug-src-base rubygem-nifti-0.0.2-20.fc38.noarch --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /builddir/build/BUILD/nifti-0.0.2 + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/redhat/brp-strip-lto /usr/bin/strip + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/check-rpaths + /usr/lib/rpm/redhat/brp-mangle-shebangs + /usr/lib/rpm/brp-remove-la-files + env /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 -j8 + /usr/lib/rpm/redhat/brp-python-hardlink Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.tvuBun + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd nifti-0.0.2 + pushd ./usr/share/gems/gems/nifti-0.0.2 + sed -i 's/config.color_enabled =/config.color =/g' spec/spec_helper.rb ~/build/BUILD/nifti-0.0.2/usr/share/gems/gems/nifti-0.0.2 ~/build/BUILD/nifti-0.0.2 + grep -rl be_true spec + xargs sed -i -e 's|be_true|be_truthy|' + grep -rl be_false spec + xargs sed -i -e 's|be_false|be_falsey|' + rspec -Ilib spec Randomized with seed 56125 ......FFFF..FF.../builddir/build/BUILD/nifti-0.0.2/usr/share/gems/gems/nifti-0.0.2/lib/nifti/n_read.rb:78: warning: undefining the allocator of T_DATA class NArray ........................... Failures: 1) NIFTI::NImage [] with a Range with a index out of range should raise a IndexError Failure/Error: expect{ subject[2][2][0..3] }.to raise_error(IndexError) expected IndexError, got # with backtrace: # ./lib/nifti/n_image.rb:43:in `[]' # ./spec/nifti/n_image_spec.rb:37:in `block (6 levels) in ' # ./spec/nifti/n_image_spec.rb:37:in `block (5 levels) in ' # ./spec/nifti/n_image_spec.rb:37:in `block (5 levels) in ' 2) NIFTI::NImage [] with a Range with a valid index should return the value Failure/Error: if (index.is_a?(Fixnum) && index >= self.shape[0]) || (index.is_a?(Range) && index.last >= self.shape[0]) NameError: uninitialized constant NIFTI::NImage::Fixnum # ./lib/nifti/n_image.rb:43:in `[]' # ./spec/nifti/n_image_spec.rb:47:in `block (5 levels) in ' 3) NIFTI::NImage [] with a Fixnum with a valid index should return the value Failure/Error: if (index.is_a?(Fixnum) && index >= self.shape[0]) || (index.is_a?(Range) && index.last >= self.shape[0]) NameError: uninitialized constant NIFTI::NImage::Fixnum # ./lib/nifti/n_image.rb:43:in `[]' # ./spec/nifti/n_image_spec.rb:29:in `block (5 levels) in ' 4) NIFTI::NImage [] with a Fixnum with a index out of range should raise a IndexError Failure/Error: expect{ subject[2][2][3] }.to raise_error(IndexError) expected IndexError, got # with backtrace: # ./lib/nifti/n_image.rb:43:in `[]' # ./spec/nifti/n_image_spec.rb:19:in `block (6 levels) in ' # ./spec/nifti/n_image_spec.rb:19:in `block (5 levels) in ' # ./spec/nifti/n_image_spec.rb:19:in `block (5 levels) in ' 5) NIFTI::NImage []= with an invalid index should raise an error Failure/Error: expect { subject[2][2][3]=1.0}.to raise_error(IndexError) expected IndexError, got # with backtrace: # ./lib/nifti/n_image.rb:43:in `[]' # ./spec/nifti/n_image_spec.rb:64:in `block (5 levels) in ' # ./spec/nifti/n_image_spec.rb:64:in `block (4 levels) in ' # ./spec/nifti/n_image_spec.rb:64:in `block (4 levels) in ' 6) NIFTI::NImage []= with a valid index should set the value Failure/Error: if (index.is_a?(Fixnum) && index >= self.shape[0]) || (index.is_a?(Range) && index.last >= self.shape[0]) NameError: uninitialized constant NIFTI::NImage::Fixnum # ./lib/nifti/n_image.rb:43:in `[]' # ./spec/nifti/n_image_spec.rb:70:in `block (4 levels) in ' 1 deprecation warning total Finished in 37.65 seconds (files took 6.1 seconds to load) 44 examples, 6 failures Failed examples: rspec ./spec/nifti/n_image_spec.rb:36 # NIFTI::NImage [] with a Range with a index out of range should raise a IndexError rspec ./spec/nifti/n_image_spec.rb:42 # NIFTI::NImage [] with a Range with a valid index should return the value rspec ./spec/nifti/n_image_spec.rb:24 # NIFTI::NImage [] with a Fixnum with a valid index should return the value rspec ./spec/nifti/n_image_spec.rb:18 # NIFTI::NImage [] with a Fixnum with a index out of range should raise a IndexError rspec ./spec/nifti/n_image_spec.rb:63 # NIFTI::NImage []= with an invalid index should raise an error rspec ./spec/nifti/n_image_spec.rb:69 # NIFTI::NImage []= with a valid index should set the value Randomized with seed 56125 Deprecation Warnings: Using `should_not` from rspec-expectations' old `:should` syntax without explicitly enabling the syntax is deprecated. Use the new `:expect` syntax or explicitly enable `:should` with `config.expect_with(:rspec) { |c| c.syntax = :should }` instead. Called from /builddir/build/BUILD/nifti-0.0.2/usr/share/gems/gems/nifti-0.0.2/spec/nifti/n_write_spec.rb:94:in `block (3 levels) in '. If you need more of the backtrace for any of these deprecations to identify where to make the necessary changes, you can configure `config.raise_errors_for_deprecations!`, and it will turn the deprecation warnings into errors, giving you the full backtrace. Coverage report generated for RSpec to /builddir/build/BUILD/nifti-0.0.2/usr/share/gems/gems/nifti-0.0.2/coverage/rspec. 308 / 379 LOC (81.27%) covered. error: Bad exit status from /var/tmp/rpm-tmp.tvuBun (%check) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.tvuBun (%check) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target noarch --nodeps /builddir/build/SPECS/rubygem-nifti.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) ^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/mockbuild/util.py", line 598, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --noclean --target noarch --nodeps /builddir/build/SPECS/rubygem-nifti.spec