libnbtplusplus icon indicating copy to clipboard operation
libnbtplusplus copied to clipboard

6 CxxTests fail

Open BitBlitObviMormon opened this issue 2 years ago • 3 comments

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 avatar Jun 14 '22 23:06 BitBlitObviMormon

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.

ljfa-ag avatar Oct 21 '22 09:10 ljfa-ag

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

BitBlitObviMormon avatar Oct 29 '22 04:10 BitBlitObviMormon

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.

ljfa-ag avatar Mar 14 '23 16:03 ljfa-ag