summaryrefslogtreecommitdiffstats
path: root/test/parser/parser-test.h
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2013-12-02 11:20:04 +0800
committerJeremy Kerr <jk@ozlabs.org>2013-12-02 12:05:13 +0800
commitd27570168fd6d5a2144553002c8082ae626b7e84 (patch)
tree4919cc264ea7f51aa6f8add8b404faeac50a65f9 /test/parser/parser-test.h
parentc4f34e487fbf061ee6385d1f75e4ef0084c9a1ba (diff)
downloadtalos-petitboot-d27570168fd6d5a2144553002c8082ae626b7e84.tar.gz
talos-petitboot-d27570168fd6d5a2144553002c8082ae626b7e84.zip
discover/device-handler: Ensure we free unresolved boot options on remove
When we remove a device, some options may still be unresolved, and so won't be deallocated through freeing the device. This chagne explicitly removes & frees any currently-unresolved options for this device. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'test/parser/parser-test.h')
-rw-r--r--test/parser/parser-test.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/parser/parser-test.h b/test/parser/parser-test.h
index 7e4ffa2..c23a7b0 100644
--- a/test/parser/parser-test.h
+++ b/test/parser/parser-test.h
@@ -31,6 +31,7 @@ void test_read_conf_file(struct parser_test *test, const char *filename,
int test_run_parser(struct parser_test *test, const char *parser_name);
void test_hotplug_device(struct parser_test *test, struct discover_device *dev);
+void test_remove_device(struct parser_test *test, struct discover_device *dev);
void test_add_file_data(struct parser_test *test, struct discover_device *dev,
const char *filename, const void *data, int size);
OpenPOWER on IntegriCloud