Skip to content
This repository has been archived by the owner on Jun 15, 2024. It is now read-only.

6 CxxTests fail #20

Open
BitBlitObviMormon opened this issue Jun 14, 2022 · 3 comments
Open

6 CxxTests fail #20

BitBlitObviMormon opened this issue Jun 14, 2022 · 3 comments
Labels

Comments

@BitBlitObviMormon
Copy link

BitBlitObviMormon commented Jun 14, 2022

I ran CxxTest on the LibNBT++ library, but 6 of the 34 tests fail. The files appear to be read correctly as no file-related exceptions appear to be thrown, however the data returned does not meet the assertions in those tests.

These are the tests that failed:

  • endian_str_test::test_uint
  • read_test::test_read_bigtest
  • read_test::test_read_littletest
  • zlibstream_test::test_inflate_zlib
  • zlibstream_test::test_inflate_open
  • zlibstream_test::test_deflate_closed

I am using Windows 8, Visual Studio Community 2019, CxxTest 4.4, and zlib 1.2.11.

Here is the full log from running those tests.

@BitBlitObviMormon BitBlitObviMormon changed the title 6 CxxTests failed 6 CxxTests fail Jun 14, 2022
@ljfa-ag ljfa-ag added the bug label Oct 21, 2022
@ljfa-ag
Copy link
Owner

ljfa-ag commented Oct 21, 2022

It looks like there is a problem with reading/writing 64-bit integers in big endian, even though it apparently works with 32-bit and smaller. I think this might be a compiler bug.

@BitBlitObviMormon
Copy link
Author

Which hard/software do you compile the code for usually?

@ljfa-ag
Copy link
Owner

ljfa-ag commented Mar 14, 2023

I am using GCC and Clang on Linux.

I must say that I'm not really maintaining this library anymore, but there are forks made by, for example, the MultiMC guys. Maybe they have fixed or worked around this issue.

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

No branches or pull requests

2 participants