mirror of
https://github.com/labwc/labwc.git
synced 2025-11-06 13:29:58 -05:00
tests: avoid fontconfig ASAN warnings
This commit is contained in:
parent
db02ef86b1
commit
84ebd2dae5
3 changed files with 7 additions and 1 deletions
|
|
@ -22,7 +22,7 @@ foreach t : rcxml_tests
|
||||||
exe = executable(
|
exe = executable(
|
||||||
testname,
|
testname,
|
||||||
sources: [t, 'tap.c'],
|
sources: [t, 'tap.c'],
|
||||||
dependencies: [wlroots],
|
dependencies: [wlroots, cairo, pangocairo],
|
||||||
include_directories: [labwc_inc],
|
include_directories: [labwc_inc],
|
||||||
link_with: [rcxml_lib],
|
link_with: [rcxml_lib],
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,8 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
#include <cairo.h>
|
||||||
|
#include <pango/pangocairo.h>
|
||||||
|
|
||||||
#include "config/rcxml.h"
|
#include "config/rcxml.h"
|
||||||
#include "tap.h"
|
#include "tap.h"
|
||||||
|
|
@ -34,5 +36,6 @@ int main(int argc, char **argv)
|
||||||
ok1(rc.client_side_decorations);
|
ok1(rc.client_side_decorations);
|
||||||
|
|
||||||
rcxml_finish();
|
rcxml_finish();
|
||||||
|
pango_cairo_font_map_set_default(NULL);
|
||||||
return exit_status();
|
return exit_status();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,8 @@
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include <cairo.h>
|
||||||
|
#include <pango/pangocairo.h>
|
||||||
|
|
||||||
#include "config/rcxml.h"
|
#include "config/rcxml.h"
|
||||||
#include "tap.h"
|
#include "tap.h"
|
||||||
|
|
@ -43,5 +45,6 @@ int main(int argc, char **argv)
|
||||||
ok1(!strcmp(expect, actual.buf));
|
ok1(!strcmp(expect, actual.buf));
|
||||||
free(actual.buf);
|
free(actual.buf);
|
||||||
free(source.buf);
|
free(source.buf);
|
||||||
|
pango_cairo_font_map_set_default(NULL);
|
||||||
return exit_status();
|
return exit_status();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue