]> git.ozlabs.org Git - petitboot/blobdiff - test/parser/parser-test.h
test/parser: Fixed uninitialized variable warning
[petitboot] / test / parser / parser-test.h
index 21b5b9ca1c98e48ecb70ba5ad38831d1c32024ba..383680fabb9ede74bfda88e3a3a5c5cd42b5a63e 100644 (file)
@@ -33,10 +33,15 @@ 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);
 
+/* Note that the testing filesystem will only reflect files and
+ * directories that you explicitly add, so it is possible for a test
+ * to inconsistently believe that a file exists but that its parent
+ * directory does not. */
 void test_add_file_data(struct parser_test *test, struct discover_device *dev,
                const char *filename, const void *data, int size);
 void test_add_dir(struct parser_test *test, struct discover_device *dev,
                const char *dirname);
+
 void test_set_event_source(struct parser_test *test);
 void test_set_event_param(struct event *event, const char *name,
                const char *value);