summaryrefslogtreecommitdiff
path: root/tests/config-parser-test.c
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2013-09-21 23:02:31 -0700
committerKristian Høgsberg <krh@bitplanet.net>2013-09-21 23:05:45 -0700
commit1abe0486bbb51c9c8517f8d5a347c6f46830de89 (patch)
tree5cfe226c1e702b70f83029467a4c3e10faf244c1 /tests/config-parser-test.c
parent81c2c2eb5ec17d2749164ff970a85638e3d0caa8 (diff)
downloadweston-1abe0486bbb51c9c8517f8d5a347c6f46830de89.tar.gz
config-parser: Make weston_config_parse() tkae a file name
Take a basename of the config file to parse instead of an fd.
Diffstat (limited to 'tests/config-parser-test.c')
-rw-r--r--tests/config-parser-test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/config-parser-test.c b/tests/config-parser-test.c
index 83e89ba4..4b8fc7e7 100644
--- a/tests/config-parser-test.c
+++ b/tests/config-parser-test.c
@@ -40,7 +40,7 @@ run_test(const char *text)
len = write(fd, text, strlen(text));
assert(len == (int) strlen(text));
- config = weston_config_parse(fd);
+ config = weston_config_parse(file);
close(fd);
unlink(file);