summaryrefslogtreecommitdiff
path: root/test/show-glyphs-many.c
Commit message (Collapse)AuthorAgeFilesLines
* test: Always use DejaVu Sans as default fontAndrea Canciani2015-07-271-1/+1
| | | | | | | | | | This makes the results of the test suite more stable across different environments, because it does not rely anymore on CAIRO_FONT_FAMILY_DEFAULT (which on Windows is "Arial", on Mac "Helvetica"). This change should not affect Linux environments, assuming that the default font is already set to "DejaVu Sans".
* [test] Move calls to the getters from out of the innermost loops.Chris Wilson2009-06-191-7/+12
| | | | | Tidy the code slightly by removing excess and unsightly calls to cairo_test_get_context() and cairo_get_scaled_font().
* [test] Use xmalloc() to evade memfault.Chris Wilson2009-04-161-1/+1
| | | | | | Do not use the simple malloc() as memfault will inject allocation failures (unlike xmalloc() for which faults are excluded) - as this is unnecessary inside the test harness and thus does not exercise any cairo code paths.
* [test] Trivial leak on error in show-glyphs-many.Chris Wilson2009-03-181-5/+6
| | | | Free the allocated glyph array after failure.
* [test] Allocate glyph array with mallocJeff Muizelaar2009-02-091-1/+3
| | | | | Keeping it on the stack causes a stack overflow of Window's default 1mb stack.
* [test] Build test suite into single binary.Chris Wilson2008-10-311-14/+6
| | | | | | | | | 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.
* [test/show-glyphs-many] Check for NO_MEMORYChris Wilson2008-10-181-5/+6
| | | | As we do a manual status check, we need to perform a full check.
* [test/show-glyphs-many] Exercise xlib boundary conditions.Chris Wilson2008-09-301-19/+64
| | | | | | | | | | | | Within _cairo_xlib_surface_emit_glyphs() there are a number of complications to do with packing as many glyphs as possible into a single XRenderCompositeGlyph*() call. Essentially these consist of choosing the right function and packing for the current glyphs, describing runs of glyphs and ensuring that we do not exceed the maximum request size within a single call. So we add to the test case we an attempt to show 64k 2-byte glyphs and an attempt to mix 64k 1-byte and 2-byte glyphs, with the change-over point chosen to overflow the maximum request size, should _cairo_xlib_surface_emit_glyphs() naively resize the current request.
* [test/show-glyphs-many] Re-enable test to trigger crash in xlib.Chris Wilson2008-09-301-0/+9
| | | | | | | Moral of this story is bugs cluster. If we made a mistake, especially in a complicated bit of code that is interfacing with another library, then we are likely to make a similar mistake in future. Disabling this test hid a regression between 1.4 and 1.6.
* Set font options in the test context and make tests not do thatBehdad Esfahbod2006-07-311-9/+0
| | | | | This should help with not requiring many backend-specific reference images, and some should be removed now.
* Add prototype for draw in each test file and remove it from the header.Behdad Esfahbod2006-07-131-0/+2
|
* More test suite infrastructure improvements:Behdad Esfahbod2006-07-111-2/+3
| | | | | | | | | | | | | | | | | - Remove cairo_test_expect_failure. cairo-test.c now checks env var CAIRO_XFAIL_TESTS to see if the running test is expected to fail. The reason for expected failure is appended to the test description. - Test description is written out. - Failed/crashed tests also write a line out to stderr (in red), so one can now redirect stdout to /dev/null to only see failures. - cairo_test() has been changed to not take the draw function anymore, instead, draw function is now part of the test struct. - "make check" doesn't allow limiting backends to test using env var anymore. To limit backends to test, one should use the TARGETS variable on the make command line. - "make check-valgrind" now writes its log to valgrind-log instead of valgrind.log, to not interfere with test log file processing.
* test/show-glyphs-many: New test case to demonstrate bug #5528Carl Worth2006-03-021-0/+127
This demonstrates an Xlib crash when rendering many glyphs. See: _XError from XRenderCompositeText8 https://bugs.freedesktop.org/show_bug.cgi?id=5528 for more details.