mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-07 12:08:16 +02:00
cairo-test.c: Prefer FALSE and TRUE for cairo_bool_t values.
This commit is contained in:
parent
ebc7367306
commit
ff1280ce98
1 changed files with 3 additions and 3 deletions
|
|
@ -1637,7 +1637,7 @@ cairo_test_expecting (cairo_test_t *test,
|
||||||
/* we use volatile here to make sure values are not clobbered
|
/* we use volatile here to make sure values are not clobbered
|
||||||
* by longjmp */
|
* by longjmp */
|
||||||
volatile int i, j, num_targets;
|
volatile int i, j, num_targets;
|
||||||
volatile cairo_bool_t limited_targets = 0, no_fail_on_stdout = 0;
|
volatile cairo_bool_t limited_targets = FALSE, no_fail_on_stdout = FALSE;
|
||||||
const char *tname;
|
const char *tname;
|
||||||
void (*old_segfault_handler)(int);
|
void (*old_segfault_handler)(int);
|
||||||
volatile cairo_test_status_t status, ret;
|
volatile cairo_test_status_t status, ret;
|
||||||
|
|
@ -1777,7 +1777,7 @@ cairo_test_expecting (cairo_test_t *test,
|
||||||
fail_face = "\033[41m\033[37m\033[1m";
|
fail_face = "\033[41m\033[37m\033[1m";
|
||||||
normal_face = "\033[m";
|
normal_face = "\033[m";
|
||||||
if (isatty (1))
|
if (isatty (1))
|
||||||
no_fail_on_stdout = 1;
|
no_fail_on_stdout = TRUE;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
@ -1794,7 +1794,7 @@ cairo_test_expecting (cairo_test_t *test,
|
||||||
|
|
||||||
if ((tname = getenv ("CAIRO_TEST_TARGET")) != NULL && *tname) {
|
if ((tname = getenv ("CAIRO_TEST_TARGET")) != NULL && *tname) {
|
||||||
|
|
||||||
limited_targets = 1;
|
limited_targets = TRUE;
|
||||||
|
|
||||||
num_targets = 0;
|
num_targets = 0;
|
||||||
targets_to_test = NULL;
|
targets_to_test = NULL;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue