ljfa-ag / libnbtplusplus

A C++ library for Minecraft's file format NBT
GNU Lesser General Public License v3.0
78 stars 25 forks source link

6 CxxTests fail #20

Open BitBlitObviMormon opened 2 years ago

BitBlitObviMormon commented 2 years ago

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:

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.

ljfa-ag commented 2 years ago

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 commented 2 years ago

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

ljfa-ag commented 1 year ago

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.