1
0
Fork 0
mirror of https://github.com/linux-usb-gadgets/libusbgx.git synced 2025-07-24 06:45:09 +03:00

libusbgx: tests: fix: Make our tests os_desc aware

Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
This commit is contained in:
Krzysztof Opasiak 2017-12-12 14:52:19 +01:00
parent bfa2c29daa
commit 904b04c4b4

View file

@ -610,7 +610,7 @@ static void push_gadget(struct test_gadget *g)
int count;
struct test_config *c;
struct test_function *f;
char *path;
char *path, *os_desc_path;
safe_asprintf(&path, "%s/%s/UDC", g->path, g->name);
PUSH_FILE_STR(path, g->udc);
@ -633,6 +633,9 @@ static void push_gadget(struct test_gadget *g)
for (c = g->configs; c->label; c++)
push_config(c);
safe_asprintf(&os_desc_path, "%s/%s/os_desc", g->path, g->name);
PUSH_DIR(os_desc_path, 0);
}
void push_init(struct test_state *state)