Files
libxmp/test-dev/test_loader_rtm.c
Claudio Matsuoka 5f52916ae5 [test] Add test for RealTracker loader
Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
2013-10-03 10:24:14 -03:00

25 lines
480 B
C

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