10 Commits

Author SHA1 Message Date
Cameron Cawley
3a119b0e85 Remove unused includes in the tests 2021-06-01 20:53:27 +01:00
AliceLR
8e3ae4fd18 Fix test-dev sample, depack, prowizard, and api leaks. 2020-11-07 18:37:57 -07:00
Claudio Matsuoka
409ac4bc69 Remove invalid pattern sanity check
Not really necessary, and causing problems with certain valid IT files.

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
2015-02-01 22:36:59 -02:00
Claudio Matsuoka
54f060a4d2 Replace invalid patterns in order list
Invalid patterns in order list, loaded from a corrupt or invalid file may
cause a segfault. Replace them with a valid pattern (or we could also
reject the module entirely because it's corrupt). We replaced the invalid
pattern to be more tolerant, and because Schism Tracker seems to do that
as well.

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
2015-02-01 21:49:13 -02:00
Claudio Matsuoka
1b5bae986f [test] Test load of prowizard files from memory
Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
2014-11-13 21:43:57 -02:00
Claudio Matsuoka
498de9f8fd [test] Add reborning.mod to load_from_memory tests
from:	 Andreas Argirakis <andreas@blazer.nu>
to:	 xmp-devel@lists.sourceforge.net
date:	 Sat, Dec 28, 2013 at 11:14 PM
subject: [xmp] certain .mod crash on loading using xmp_load_module_from_memory

Using libxmp 4.2.0.

Using xmp_load_module_from_memory() loading (modland)Protracker/6-Mate/reborning.mod gives a crash. I tracked it down to void read_title(HIO_HANDLE *f, char *t, int s) in common.c.
Using xmp_load_module() works however fine with that module.

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
2013-12-29 08:08:39 -02:00
Claudio Matsuoka
54badf18d0 [test] Improve module loading tests
Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
2013-12-25 17:59:30 -02:00
Claudio Matsuoka
d9006843c6 [test] Update tests to use the new hio API
Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
2013-05-30 11:58:03 -03:00
Claudio Matsuoka
3da9c284e0 [test] Check if module was correctly loaded from memory
Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
2013-05-25 10:27:06 -03:00
Claudio Matsuoka
13ed25db59 [test] Add handle i/o memory reading tests
Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
2013-05-24 17:02:28 -03:00