summaryrefslogtreecommitdiff
path: root/test/pattern-getters.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix -Wlogical-not-parenthesesKhaled Hosny2023-02-061-1/+1
| | | | | | | | | | | | | | | | | The code is doing "if (!double_buf_equal () != 0)" which seems to be a convoluted way to do "if (!double_buf_equal ())". Fixes: ../test/pattern-getters.c:153:6: warning: logical not is only applied to the left hand side of this comparison [-Wlogical-not-parentheses] if (!double_buf_equal (ctx, new_buf, expected_values, ^ ../test/pattern-getters.c:153:6: note: add parentheses after the '!' to evaluate the comparison first if (!double_buf_equal (ctx, new_buf, expected_values, ^ ( ../test/pattern-getters.c:153:6: note: add parentheses around left hand side expression to silence this warning if (!double_buf_equal (ctx, new_buf, expected_values, ^ (
* Misc. typosluz.paz2019-01-311-1/+1
| | | | | | | Found via `codespell -i 3 -w -I ../cairo-word-whitelist.txt -L tim,ned,uint` Follow up of 12cb59be7da Reviewed-by: Bryce Harrington <bryce@bryceharrington.org>
* test: fix include order for AIX, bug#89354Michael Haubenwallner2015-03-051-1/+1
|
* test: Use ARRAY_LENGTH() macroAndrea Canciani2011-03-171-1/+1
| | | | | Some tests hand-code ARRAY_LENGTH(). It is now provided by cairo-test.h, so it can be reused.
* mesh: Rename cairo_pattern_mesh_* functions to cairo_mesh_pattern_*Andrea Canciani2011-02-071-17/+17
| | | | | | | | | This is consistent with the naming of most cairo types/functions (example: cairo_foo_surface_*). The substitution in the code has been performed using: sed -i 's/cairo_pattern_mesh_/cairo_mesh_pattern_/' <files>
* test: Extend pattern-get-type and pattern-getters for mesh patternsAndrea Canciani2011-01-011-0/+82
| | | | Add testing for mesh patterns to pattern-get-type and pattern-getters.
* [test] Destroy pattern on error paths.Chris Wilson2009-03-181-4/+25
| | | | Destroy the pattern after encountering an error in pattern-getters test.
* [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] Preparatory work for running under memfault.Chris Wilson2008-08-131-6/+7
| | | | | | | | | | | | | | | | | | | | 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/.
* Fix undefined macro that was preventing the tests from compilingAdrian Johnson2008-01-291-14/+14
|
* Fix bitmap-font test by using near-equality for double comparisonCarl Worth2008-01-281-3/+1
|
* [test] In pattern-getters test, log what went wrongBehdad Esfahbod2007-03-131-3/+11
|
* Fix leak in pattern-getters test (missing cairo_pattern_destroy)Carl Worth2007-03-021-0/+2
|
* Fix typo of , instead of || which was causing a test to be ignoredCarl Worth2006-10-121-4/+4
| | | | | Thanks to a gcc warning for catching this one, (statement with no effect, or similar).
* dash and pattern getter functionsVladimir Vukicevic2006-09-191-0/+175
Adds API functions for inspecting the current dash state, as well as the contents of pattern objects: cairo_get_dash cairo_get_dash_count cairo_pattern_get_rgba cairo_pattern_get_surface cairo_pattern_get_color_stop_rgba cairo_pattern_get_color_stop_count cairo_pattern_get_linear_points cairo_pattern_get_radial_circles