Skip to content

2.2.8: Test utest_leafref failing in aarch64 #2222

Closed
@hruskape

Description

@hruskape

I'm attempting to create libyang v.2.2.8 rpm for Fedora39. "43 - utest_leafref" test is systematically failing for aarch64 arch. For x86_64 all is fine.

1/1 Test #43: utest_leafref ....................***Failed    0.93 sec
[==========] tests: Running 6 test(s).
[ RUN      ] test_data_xml
[       OK ] test_data_xml
[ RUN      ] test_data_json
[       OK ] test_data_json
[ RUN      ] test_plugin_lyb
[       OK ] test_plugin_lyb
[ RUN      ] test_plugin_sort
[  ERROR   ] --- 0xffffffffffffffff != 0xffffffffffffffc0
[   LINE   ] --- /root/libyang-2.2.8/tests/utests/types/leafref.c:242: error: Failure!
[  FAILED  ] test_plugin_sort
[ RUN      ] test_data_xpath_json
[       OK ] test_data_xpath_json
[ RUN      ] test_xpath_invalid_schema
[       OK ] test_xpath_invalid_schema
[==========] tests: 6 test(s) run.
[  PASSED  ] 5 test(s).
[  FAILED  ] tests: 1 test(s), listed below:
[  FAILED  ] test_plugin_sort

 1 FAILED TEST(S)

Way to reproduce inside container :

docker run -it --rm fedora:39 bash
dnf -y install cmake doxygen gcc make libcmocka-devel pcre2-devel valgrind wget
wget https://github.com/CESNET/libyang/archive/refs/tags/v2.2.8.tar.gz
tar xf v2.2.8.tar.gz
cd libyang-2.2.8/
mkdir build
cmake ..
make -j 8
ctest --output-on-failure -V  -j8 

Problem can be also tested at x86_64 with use of qemu-user-static-aarch64 emulation. Then docker command requiring to specify "--arch aarch64".

Metadata

Metadata

Assignees

No one assigned

    Labels

    is:bugBug description.status:completedFrom the developer perspective, the issue was solved (bug fixed, question answered,...)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions