mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-08 02:08:03 +02:00
Fix create-for-stream test to log its failure properly
Without this, a failure of this test won't be nicely reported in the post-make-check summary. (Also fix a silly little typo in the svg-clip test.)
This commit is contained in:
parent
57c2b75c22
commit
e49db8ed3e
3 changed files with 12 additions and 4 deletions
|
|
@ -520,7 +520,6 @@ surface-pattern-scale-up$(EXEEXT)
|
|||
|
||||
# Any test that doesn't generate a log file goes here
|
||||
NOLOG_TESTS = \
|
||||
create-for-stream \
|
||||
user-data \
|
||||
svg-surface \
|
||||
svg-clip \
|
||||
|
|
|
|||
|
|
@ -225,19 +225,22 @@ test_surface (const char *backend,
|
|||
return CAIRO_TEST_SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
main (void)
|
||||
{
|
||||
cairo_test_status_t status = CAIRO_TEST_SUCCESS;
|
||||
cairo_test_status_t test_status;
|
||||
const char test_name[] = "create-for-stream";
|
||||
|
||||
cairo_test_init ("create-for-stream");
|
||||
cairo_test_init (test_name);
|
||||
|
||||
#if CAIRO_HAS_PS_SURFACE
|
||||
test_status = test_surface ("ps", "create-for-stream.ps",
|
||||
cairo_ps_surface_create,
|
||||
cairo_ps_surface_create_for_stream);
|
||||
cairo_test_log ("TEST: %s TARGET: %s RESULT: %s\n",
|
||||
test_name, "ps",
|
||||
test_status ? "FAIL" : "PASS");
|
||||
if (status == CAIRO_TEST_SUCCESS)
|
||||
status = test_status;
|
||||
#endif
|
||||
|
|
@ -246,6 +249,9 @@ main (void)
|
|||
test_status = test_surface ("pdf", "create-for-stream.pdf",
|
||||
cairo_pdf_surface_create,
|
||||
cairo_pdf_surface_create_for_stream);
|
||||
cairo_test_log ("TEST: %s TARGET: %s RESULT: %s\n",
|
||||
test_name, "pdf",
|
||||
test_status ? "FAIL" : "PASS");
|
||||
if (status == CAIRO_TEST_SUCCESS)
|
||||
status = test_status;
|
||||
#endif
|
||||
|
|
@ -254,6 +260,9 @@ main (void)
|
|||
test_status = test_surface ("svg", "create-for-stream.svg",
|
||||
cairo_svg_surface_create,
|
||||
cairo_svg_surface_create_for_stream);
|
||||
cairo_test_log ("TEST: %s TARGET: %s RESULT: %s\n",
|
||||
test_name, "svg",
|
||||
test_status ? "FAIL" : "PASS");
|
||||
if (status == CAIRO_TEST_SUCCESS)
|
||||
status = test_status;
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -127,7 +127,7 @@ main (void)
|
|||
cairo_destroy (cr);
|
||||
cairo_surface_destroy (surface);
|
||||
|
||||
printf ("svg-surface: Please check %s to make sure it looks happy.\n",
|
||||
printf ("svg-clip: Please check %s to make sure it looks happy.\n",
|
||||
filename);
|
||||
|
||||
cairo_test_fini ();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue