summaryrefslogtreecommitdiffstats
path: root/test/parser/utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/parser/utils.c')
-rw-r--r--test/parser/utils.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/parser/utils.c b/test/parser/utils.c
index 16c415a..a1d0ad2 100644
--- a/test/parser/utils.c
+++ b/test/parser/utils.c
@@ -85,6 +85,13 @@ void test_fini(struct parser_test *test)
talloc_free(test);
}
+void __test_read_conf_data(struct parser_test *test,
+ const char *buf, size_t len)
+{
+ test->conf.size = len;
+ test->conf.buf = talloc_memdup(test, buf, len);
+}
+
void test_read_conf_file(struct parser_test *test, const char *filename)
{
struct stat stat;
OpenPOWER on IntegriCloud