Skip to content

Test 'UnsignedComparisons' and 'FitsIn' failed #347

@simon28li

Description

@simon28li

Hi,The error in the execution of sealtest is as follows.
Can you help locate the cause of the error?
Thanks a lot.

[ RUN      ] Common.Constants
[       OK ] Common.Constants (0 ms)
[ RUN      ] Common.UnsignedComparisons
/home/enable/SEAL/native/tests/seal/util/common.cpp:53: Failure
Value of: unsigned_eq(neg_c, pos_ull_max)
  Actual: false
Expected: true
[  FAILED  ] Common.UnsignedComparisons (0 ms)
[ RUN      ] Common.SafeArithmetic
[       OK ] Common.SafeArithmetic (0 ms)
[ RUN      ] Common.FitsIn
/home/enable/SEAL/native/tests/seal/util/common.cpp:109: Failure
Value of: fits_in<char>(pos_uc_max)
  Actual: true
Expected: false
[  FAILED  ] Common.FitsIn (0 ms)
[ RUN      ] Common.DivideRoundUp


 ...


[----------] Global test environment tear-down
[==========] 255 tests from 41 test suites ran. (983 ms total)
[  PASSED  ] 253 tests.
[  FAILED  ] 2 tests, listed below:
[  FAILED  ] Common.UnsignedComparisons
[  FAILED  ] Common.FitsIn

 2 FAILED TESTS

Steps to reproduce the issue

$ cmake -S . -B build -DSEAL_BUILD_TESTS=ON -DSEAL_BUILD_BENCH=ON -DSEAL_BUILD_EXAMPLES=ON
$ cmake --build build -j16
$ cd build/bin
$ ./sealtest

Information on your system

$ uname -a
Linux localhost.localdomain 4.18.0-193.el8.aarch64 #1 SMP Fri May 8 11:05:12 UTC 2020 aarch64 aarch64 aarch64 GNU/Linux
[root@localhost bin]# cat /etc/os-release
NAME="CentOS Linux"
VERSION="8 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="8"
PLATFORM_ID="platform:el8"
PRETTY_NAME="CentOS Linux 8 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:8"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"

CENTOS_MANTISBT_PROJECT="CentOS-8"
CENTOS_MANTISBT_PROJECT_VERSION="8"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="8"


Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions