tests: Use memstream for config-parser test

Using real files is unnecessarily heavy and error-prone. Fixes timeouts
seen on CI with ASan.

Signed-off-by: Daniel Stone <daniels@collabora.com>
This commit is contained in:
Daniel Stone
2022-06-25 06:12:50 +01:00
parent 759712ba05
commit f52231660e
3 changed files with 81 additions and 47 deletions
+3
View File
@@ -88,6 +88,9 @@ weston_config_section_get_bool(struct weston_config_section *section,
const char *
weston_config_get_name_from_env(void);
struct weston_config *
weston_config_parse_fp(FILE *file);
struct weston_config *
weston_config_parse(const char *name);