summaryrefslogtreecommitdiff
path: root/test/pthread-show-text.c
AgeCommit message (Collapse)AuthorFilesLines
2010-05-04test: Cleanup after failed pthread_join().Chris Wilson1-8/+9
2010-04-30test: Expand pthread-show-text to cover all surfaces.Chris Wilson1-44/+74
In a similar fashion to pthread-same-source and pthread-similar, check that the texting handling is thread-safe for all surface and font backends.
2008-10-31[test] Build test suite into single binary.Chris Wilson1-19/+22
Avoid calling libtool to link every single test case, by building just one binary from all the sources. This binary is then given the task of choosing tests to run (based on user selection and individual test requirement), forking each test into its own process and accumulating the results.
2008-09-04[test] Do not include "xmalloc.h" directlyBehdad Esfahbod1-1/+0
Not needed, it's renamed and included by boilerplate directly.
2008-08-13[test] Preparatory work for running under memfault.Chris Wilson1-5/+6
In order to run under memfault, the framework is first extended to handle running concurrent tests - i.e. multi-threading. (Not that this is a requirement for memfault, instead it shares a common goal of storing per-test data). To that end all the global data is moved into a per-test context and the targets are adjusted to avoid overlap on shared, global resources (such as output files and frame buffers). In order to preserve the simplicity of the standard draw routines, the context is not passed explicitly as a parameter to the routines, but is instead attached to the cairo_t via the user_data. For the masochist, to enable the tests to be run across multiple threads simply set the environment variable CAIRO_TEST_NUM_THREADS to the desired number. In the long run, we can hope the need for memfault (runtime testing of error paths) will be mitigated by static analysis. A promising candidate for this task would appear to be http://hal.cs.berkeley.edu/cil/.
2007-03-02More tightening of test cleanup to avoid valgrind complaints.Carl Worth1-7/+1
2007-02-13Increase pthread-show-text thread count and add cairo_select_font_face to ↵Carl Worth1-1/+4
expose more bugs.
2007-02-06test/pthread-show-text: Increease iterations to expose locking bugCarl Worth1-2/+5
With 50 iterations I'm seeing the following assertion failure: cairo-hash.c:477: _cairo_hash_table_insert: Assertion `NOT_REACHED' failed. Thanks to Jan Slupski <jslupski@juljas.net> for pointing out this bug.
2006-05-10bug #6890: fix the signature for main() in pthread-show-textTim Mooney1-1/+1
2005-09-13Adjust parameters to stress things a bit more, (better exposing another ↵Carl Worth1-5/+5
locking bug).
2005-09-13Add documentation for cairo_test functions.Carl Worth1-0/+110
Abstract log fie creation into cairo_test_init for use by tests that don't use cairo_test(). Add new test for bug #4299 as reported by Alexey Shabalin.