Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test error in paraview-catalyst 2.0.0-2 under riscv64 #1380

Open
gyx47 opened this issue Mar 7, 2025 · 0 comments
Open

test error in paraview-catalyst 2.0.0-2 under riscv64 #1380

gyx47 opened this issue Mar 7, 2025 · 0 comments

Comments

@gyx47
Copy link

gyx47 commented Mar 7, 2025

Description:

There is a problem with the test code of the paraview-catalyst 2.0.0-2 package under the riscv64 architectures. According to the log output, the t_conduit_node_set test file reported an error .

[ RUN      ] conduit_node_set.set_path_cstyle_native_int
/usr/src/debug/paraview-catalyst/catalyst-v2.0.0/tests/conduit_tests/t_conduit_node_set.cpp:2276: Failure
Expected equality of these values:
  catalyst_conduit_datatype_is_signed_integer(nc.c_dtype())
    Which is: 0
  true

/usr/src/debug/paraview-catalyst/catalyst-v2.0.0/tests/conduit_tests/t_conduit_node_set.cpp:2277: Failure
Expected equality of these values:
  catalyst_conduit_datatype_is_unsigned_integer(nc.c_dtype())
    Which is: 1
  false

[  FAILED  ] conduit_node_set.set_path_cstyle_native_int (4 ms)
[ RUN      ] conduit_node_set.set_path_cstyle_native_int
/usr/src/debug/paraview-catalyst/catalyst-v2.0.0/tests/conduit_tests/t_conduit_node_set.cpp:2276: Failure
Expected equality of these values:
  catalyst_conduit_datatype_is_signed_integer(nc.c_dtype())
    Which is: 0
  true

/usr/src/debug/paraview-catalyst/catalyst-v2.0.0/tests/conduit_tests/t_conduit_node_set.cpp:2277: Failure
Expected equality of these values:
  catalyst_conduit_datatype_is_unsigned_integer(nc.c_dtype())
    Which is: 1
  false

[  FAILED  ] conduit_node_set.set_path_cstyle_native_int (4 ms)

Additional info:

package version(s):paraview-catalyst 2.0.0-2

My operating environment is an x86-64 environment virtual machine of the arch architecture of Windows WSL. But this package is built in chroot for the riscv64 architecture using the extra-riscv64-build command

Steps to reproduce:

I cloned your project and installed the dependencies
run cmake and ctest

Debug

According to the test codes corresponding to the two errors, I found that it is a common problem to distinguish whether char is a signed number or an unsigned number.

In the test, the signed value should output true, and the unsigned value should output false. The actual result is the opposite. After testing in the RISC V environment

flag=std::is_signed<char>::value?1:0;

It proves that char is an unsigned number under the riscv architecture This is why the test is not applicable when ported to the RISCv architecture.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant