strlist: Make test names unique.
authorJelmer Vernooij <jelmer@samba.org>
Wed, 22 Sep 2010 00:35:26 +0000 (17:35 -0700)
committerJelmer Vernooij <jelmer@samba.org>
Wed, 22 Sep 2010 05:54:33 +0000 (22:54 -0700)
lib/util/tests/strlist.c

index ce7d1e4e9bb62d916e8bbde5818e46523ad79db5..3a7f2a5cc56dc8cbd3f666cdee457b6e3adcd06d 100644 (file)
@@ -473,12 +473,18 @@ struct torture_suite *torture_local_util_strlist(TALLOC_CTX *mem_ctx)
        int i;
 
        for (i = 0; i < ARRAY_SIZE(test_lists_shell_strings); i++) {
-               torture_suite_add_simple_tcase_const(suite, "lists_shell",
+               char *name;
+               name = talloc_asprintf(suite, "lists_shell(%s)",
+                                                          test_lists_shell_strings[i].list_as_string);
+               torture_suite_add_simple_tcase_const(suite, name,
                        test_lists_shell,  &test_lists_shell_strings[i]);
        }
 
        for (i = 0; i < ARRAY_SIZE(test_lists_strings); i++) {
-               torture_suite_add_simple_tcase_const(suite, "list_make",
+               char *name;
+               name = talloc_asprintf(suite, "list_make(%s)",
+                                                          test_lists_strings[i].list_as_string);
+               torture_suite_add_simple_tcase_const(suite, name,
                        test_list_make, &test_lists_strings[i]);
        }