Files
libxmp/test-dev/test_loader_sym.c
AliceLR 0ca3d337ba Add MIT-licensed Digital Symphony LZW decoder.
This removes the Digital Symphony loader's dependency on the LGPL
licensed ARC/ArcFS LZW decoder used in the depackers, meaning libxmp
builds with --disable-depackers should now be fully MIT.

The Digital Symphony loader has also been modified to allocate fewer
temporary sample buffers.
2021-07-24 16:54:38 -06:00

25 lines
484 B
C

#include "test.h"
TEST(test_loader_sym)
{
xmp_context opaque;
struct xmp_module_info info;
FILE *f;
int ret;
f = fopen("data/format_sym.data", "r");
opaque = xmp_create_context();
ret = xmp_load_module(opaque, "data/m/drwhofinl4.dsym");
fail_unless(ret == 0, "module load");
xmp_get_module_info(opaque, &info);
ret = compare_module(info.mod, f);
fail_unless(ret == 0, "format not correctly loaded");
xmp_release_module(opaque);
xmp_free_context(opaque);
}
END_TEST