Skip to content

Multiple tests fail on s390x architecture (mainframe) #62

@jonathanspw

Description

@jonathanspw
Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.FlXXcB
+ umask 022
+ cd /builddir/build/BUILD/astroterm-1.0.5-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  -m64 -march=z13 -mtune=z14 -fasynchronous-unwind-tables -fstack-clash-protection '
+ 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  -m64 -march=z13 -mtune=z14 -fasynchronous-unwind-tables -fstack-clash-protection '
+ export CXXFLAGS
+ FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -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  -m64 -march=z13 -mtune=z14 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules '
+ export FFLAGS
+ FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -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  -m64 -march=z13 -mtune=z14 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules '
+ export FCFLAGS
+ VALAFLAGS=-g
+ export VALAFLAGS
+ RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn'
+ export RUSTFLAGS
+ 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 -specs=/usr/lib/rpm/redhat/redhat-package-notes '
+ export LDFLAGS
+ LT_SYS_LIBRARY_PATH=/usr/lib64:
+ export LT_SYS_LIBRARY_PATH
+ CC=gcc
+ export CC
+ CXX=g++
+ export CXX
+ cd astroterm-1.0.5
+ /usr/bin/meson test -C redhat-linux-build --num-processes 3 --print-errorlogs
ninja: Entering directory `/builddir/build/BUILD/astroterm-1.0.5-build/astroterm-1.0.5/redhat-linux-build'
ninja: no work to do.
1/7 coord_test     OK              0.01s
2/7 astro_test     OK              0.01s
3/7 city_test      OK              0.01s
4/7 bit_test       OK              0.01s
5/7 drawing_test   OK              0.00s
6/7 core_test      FAIL            0.03s   exit status 3
>>> MESON_TEST_ITERATION=1 UBSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:print_stacktrace=1 ASAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1 MALLOC_PERTURB_=234 MSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:print_stacktrace=1 /builddir/build/BUILD/astroterm-1.0.5-build/astroterm-1.0.5/redhat-linux-build/core_test
――――――――――――――――――――――――――――――――――――― ✀  ―――――――――――――――――――――――――――――――――――――
../test/core_test.c:88:test_generate_star_table:FAIL: Expected 1 Was 0
../test/core_test.c:290:test_generate_name_table:PASS
../test/core_test.c:291:test_generate_constell_table:PASS
../test/core_test.c:157:test_star_numbers_by_magnitude:FAIL: Expected 1894 Was 0
../test/core_test.c:188:test_update_star_positions:FAIL: Expected 7001 Was 0
../test/core_test.c:294:test_update_planet_positions:PASS
../test/core_test.c:295:test_update_moon_position:PASS
../test/core_test.c:296:test_map_float_to_int_range:PASS
../test/core_test.c:297:test_string_to_time:PASS
../test/core_test.c:298:test_elapsed_time_to_components:PASS
-----------------------
10 Tests 3 Failures 0 Ignored 
FAIL
――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
7/7 stopwatch_test OK              0.50s
Summary of Failures:
6/7 core_test      FAIL            0.03s   exit status 3
Ok:                 6   
Expected Fail:      0   
Fail:               1   
Unexpected Pass:    0   
Skipped:            0   
Timeout:            0   

Full build log: https://kojipkgs.fedoraproject.org//work/tasks/384/128250384/build.log

I'd imagine this is because s390x is a big-endian arch, unlike x86_64, aarch64, and ppc64le - all of which tests pass on.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions