tests: avoid fontconfig ASAN warnings

This commit is contained in:
Johan Malm 2020-09-07 20:14:46 +01:00
parent db02ef86b1
commit 84ebd2dae5
3 changed files with 7 additions and 1 deletions

View file

@ -22,7 +22,7 @@ foreach t : rcxml_tests
exe = executable(
testname,
sources: [t, 'tap.c'],
dependencies: [wlroots],
dependencies: [wlroots, cairo, pangocairo],
include_directories: [labwc_inc],
link_with: [rcxml_lib],
)

View file

@ -3,6 +3,8 @@
#include <stdlib.h>
#include <unistd.h>
#include <stdbool.h>
#include <cairo.h>
#include <pango/pangocairo.h>
#include "config/rcxml.h"
#include "tap.h"
@ -34,5 +36,6 @@ int main(int argc, char **argv)
ok1(rc.client_side_decorations);
rcxml_finish();
pango_cairo_font_map_set_default(NULL);
return exit_status();
}

View file

@ -4,6 +4,8 @@
#include <stdarg.h>
#include <stdbool.h>
#include <string.h>
#include <cairo.h>
#include <pango/pangocairo.h>
#include "config/rcxml.h"
#include "tap.h"
@ -43,5 +45,6 @@ int main(int argc, char **argv)
ok1(!strcmp(expect, actual.buf));
free(actual.buf);
free(source.buf);
pango_cairo_font_map_set_default(NULL);
return exit_status();
}