summaryrefslogtreecommitdiff
path: root/test/api-special-cases.c
Commit message (Collapse)AuthorAgeFilesLines
* Drop OS/2 supportEmmanuele Bassi2022-02-251-3/+0
| | | | | | | OS/2 support was last built in Cairo 1.12, which was released 10 years ago. Additionally, OS/2 is not supported by Meson.
* Drop the conditional inclusion of config.hEmmanuele Bassi2021-05-011-2/+0
| | | | | | | | | | | | We *always* generate this file, and we depend on its existence. The idea behind HAVE_CONFIG_H was being able to include random files from different projects, back in a time where "libraries" were literally just random files instead of actual shared objects. Since we're not in the '80s any more, and our build system(s) define HAVE_CONFIG_H *and* generate the config.h header file, we don't need a conditional guard around its inclusion.
* Use HTTPS URLs for cairographics.org domainsPaul Menzel2018-10-161-1/+1
| | | | | | | | Run the command below suggested by geirha in ##sed@irc.freenode.net. git grep -l 'http://.*cairographics.org' | xargs sed -i 's|http\(://\([[:alnum:].-]*\.\)\{0,1\}cairographics\.org\)|https\1|g' Signed-off-by: Paul Menzel <pmenzel@molgen.mpg.de>
* test: Release owned patternAndrea Canciani2014-12-061-1/+3
| | | | | | | | | | | | | | | | | The pattern created by cairo_pattern_create_rgb() is owned by the caller, hence it needs to be released. Fixes the following valgrind error: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) _cairo_pattern_create_solid (cairo-pattern.c:605) _cairo_pattern_create_in_error (cairo-pattern.c:628) cairo_pop_group (cairo.c:552) test_cairo_push_group (api-special-cases.c:157) preamble (api-special-cases.c:1766) main (cairo-test-runner.c:228) Signed-off-by: Bryce Harrington <bryce@osg.samsung.com>
* api-special-cases: Also test contextsUli Schlachter2013-08-131-21/+1153
| | | | | | | | | | | | | | | | This adds code to the api-special-cases test which also tests the behavior of cairo when the cairo context or the surface that is target is in an error state or finished. These new tests call into all public entry points defined in cairo.h which receive a cairo_t * as their first argument. Currently this causes a new crash in the testsuite: cairo-surface.c:394: _cairo_surface_begin_modification: Assertion `! surface->finished' failed. Reported-by: christophe.troestler@umons.ac.be References: https://bugs.freedesktop.org/show_bug.cgi?id=68014 Signed-off-by: Uli Schlachter <psychon@znc.in>
* xcb: Fixup some internal state in set_{drawable,size}Uli Schlachter2011-12-051-0/+8
| | | | Signed-off-by: Uli Schlachter <psychon@znc.in>
* test: Cleanup macrosAndrea Canciani2011-03-171-1/+0
| | | | | | | | The ARRAY_LENGTH macro is used by many tests, although sometimes it is named ARRAY_SIZE. Define it just once in cairo-test.h and reuse it. In a similar way, MAX() and MIN() are currently defined in some specific tests, while they could be reused.
* test: Silence gccAndrea Canciani2011-03-171-0/+2
| | | | | api-special-cases.c:94:1: warning: "Cursor" redefined api-special-cases.c:81:1: warning: this is the location of the previous definition
* configure: Disable tee backend by defaultBenjamin Otte2010-07-301-0/+6
| | | | We don't want to enable it by default when nobody uses it.
* tee: Move definitions into separate headerBenjamin Otte2010-07-301-0/+3
|
* Make distcheck happy.Chris Wilson2010-07-121-2/+3
|
* test: Add quartz functions to api-special-cases testAndrea Canciani2010-07-081-0/+19
|
* test: fix typoAndrea Canciani2010-07-081-1/+1
|
* test: Add note about how to fix failures to api-special-casesBenjamin Otte2010-07-061-0/+6
|
* test: Add documentation to the api-special-cases testBenjamin Otte2010-07-061-0/+27
| | | | Hopefully people add other backend APIs to the testsuite.
* test: Add xcb and xlib functions to api-special-cases testBenjamin Otte2010-07-061-0/+91
|
* test: Add ps, pdf and svg to the api-special-cases testBenjamin Otte2010-07-051-0/+103
|
* test: Add gl functions to the testsBenjamin Otte2010-07-051-1/+38
|
* test: Add recording and tee surface functions to api-special-casesBenjamin Otte2010-07-051-0/+44
|
* test: add PNG functionsBenjamin Otte2010-07-051-0/+36
|
* test: Add a non-error surface checkBenjamin Otte2010-07-051-0/+36
| | | | | | In that check, we call functions that require a specific surface type with surfaces of a different type and check that they don't crash and set the correct error.
* test: add image surface functions to api-special-cases testBenjamin Otte2010-07-051-24/+66
|
* test: Add a new test variant to api-special-cases testBenjamin Otte2010-07-051-0/+35
| | | | This variant tests a (hopefully) inert error surface.
* tests: Add a testcase that checks APIs work consistentlyBenjamin Otte2010-07-051-0/+360
In particular, it checks that finished and surfaces in an error state do not do bad things, like cause crashes. So far this test only checks surface APIs, but it should be extended to cover all APIs. Please update this test when new APIs get added. Motivated by https://bugs.launchpad.net/ubuntu/+source/cairo/+bug/600622