[gnome-keyring] tests: Make sure names for write_large_file tests are different



commit 3c424be597a2e4164348bc087882a7ed376df163
Author: Dmitry Shachnev <mitya57 ubuntu com>
Date:   Wed Sep 30 14:00:43 2015 +0300

    tests: Make sure names for write_large_file tests are different
    
    https://bugzilla.gnome.org/show_bug.cgi?id=755873

 pkcs11/gkm/test-transaction.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/pkcs11/gkm/test-transaction.c b/pkcs11/gkm/test-transaction.c
index 7c2dd83..ff864ad 100644
--- a/pkcs11/gkm/test-transaction.c
+++ b/pkcs11/gkm/test-transaction.c
@@ -541,10 +541,13 @@ main (int argc, char **argv)
                };
                int i;
 
+               gchar test_name[39];
                for (i = 0; buffersizes[i]; i++)
-                       g_test_add ("/gkm/transaction/write_large_file",
-                                   Test, GUINT_TO_POINTER (buffersizes[i]),
+               {
+                       g_sprintf (test_name, "/gkm/transaction/write_large_file_%u", buffersizes[i]);
+                       g_test_add (test_name, Test, GUINT_TO_POINTER (buffersizes[i]),
                                    setup, test_write_large_file, teardown);
+               }
        }
 
        g_test_add ("/gkm/transaction/write_file_abort_gone", Test, NULL, setup, test_write_file_abort_gone, 
teardown);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]