Files
libxmp/test-dev/test_loader_skyt.c
AliceLR 5f3de6b731 Fix SKYT Packer loader.
Fixes the following bugs in the SKYT Packer loader that prevented
SKYT modules from working:

* libxmp no longer attempts to read track 0 from the file.
* libxmp seeks to the end of the track data before attempting to
  copy sample data.
2021-01-08 23:52:59 -07:00

25 lines
495 B
C

#include "test.h"
TEST(test_loader_skyt)
{
xmp_context opaque;
struct xmp_module_info info;
FILE *f;
int ret;
f = fopen("data/format_skyt.data", "r");
opaque = xmp_create_context();
ret = xmp_load_module(opaque, "data/m/Drifters-LatexIntro.skyt");
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