summaryrefslogtreecommitdiffstats
path: root/test/test.c
Commit message (Collapse)AuthorAgeFilesLines
* test: free imageGrigori Goronzy2011-07-151-0/+2
| | | | Reduces the noise in valgrind output.
* test: fix compilation with libpng 1.5, rename configure switchGrigori Goronzy2011-02-161-1/+1
| | | | | | | | | | | libpng 1.5 renamed the jmpbuf variable to jmp_buf. Since direct access to this variable is deprecated, it makes more sense to use the function png_jmpbuf() instead. Also, rename the --enable-png switch to --enable-test to make clear this is a debugging option. Initial patch by Alexis Ballier, aballier AT gentoo DOT org.
* test: Add license headerGrigori Goronzy2010-09-281-0/+19
|
* Simplify test programGrigori Goronzy2010-02-061-6/+0
| | | | Lots of unnecessary calls to setup functions can be removed.
* Rename typedefs (breaks API)Grigori Goronzy2009-08-061-7/+7
| | | | | | Rename all typedefs from the convention foo_bar_t, which can possibly conflict with POSIX types, to FooBar (and ASS_FooBar for public API typedefs). Fix formatting and stray comments while at it.
* Improve message callback APIGrigori Goronzy2009-07-261-2/+2
| | | | | | Instead of passing a pointer to a va_list, pass the va_list itself. Additionally, use const char for the format string and use names in the prototype that describe the arguments' meaning.
* Test program: free track/renderer/libraryGrigori Goronzy2009-07-241-0/+5
| | | | | In the test program, free the track, renderer and library properly. This is useful for memory leak testing.
* Improve fontconfig setupGrigori Goronzy2009-07-171-1/+1
| | | | | | | Add an argument to ass_set_fonts for controlling whether the fontconfig font cache should be built/updated. Add a new function ass_fonts_update to make it possible to update fonts later on. Additionally, stop using FcConfigSetDefault for thread safety.
* Allow passing user data to callbackGrigori Goronzy2009-07-121-2/+2
| | | | | | It is often useful or necessary to pass custom data to a callback. Add an argument to the callback registering function to pass a void pointer object to the callback each time it is called.
* Convert test program to plain CGrigori Goronzy2009-07-111-0/+181
The test program unnecessarily was using a few C++ features. Convert it to plain C to make everything work without a C++ compiler.