test: fix no-device test name handling

All these tests were stored with "no device" as test name.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2017-09-21 15:55:18 +10:00
parent 5516e9ea74
commit 76e138f512

View file

@ -547,10 +547,11 @@ litest_add_tcase_for_device(struct suite *suite,
static void
litest_add_tcase_no_device(struct suite *suite,
void *func,
const char *funcname,
const struct range *range)
{
struct test *t;
const char *test_name = "no device";
const char *test_name = funcname;
if (filter_device &&
fnmatch(filter_device, test_name, 0) != 0)
@ -614,7 +615,7 @@ litest_add_tcase(const char *suite_name,
if (required == LITEST_DISABLE_DEVICE &&
excluded == LITEST_DISABLE_DEVICE) {
litest_add_tcase_no_device(suite, func, range);
litest_add_tcase_no_device(suite, func, funcname, range);
added = true;
} else if (required != LITEST_ANY || excluded != LITEST_ANY) {
for (; *dev; dev++) {