]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-test: Remove rand state dump
authorAki Tuomi <aki.tuomi@dovecot.fi>
Wed, 23 Aug 2017 10:02:36 +0000 (13:02 +0300)
committerTimo Sirainen <tss@dovecot.fi>
Thu, 7 Sep 2017 08:40:31 +0000 (11:40 +0300)
It's not possible after next commit

src/lib-test/test-common.c

index 79c7178eb8b2a0161120e1f26dc6dc5c79929ffb..8da4ee6710eda76bbd3167eee438666310e65bd5 100644 (file)
@@ -60,22 +60,6 @@ void test_assert_failed_strcmp(const char *code, const char *file, unsigned int
        test_success = FALSE;
 }
 
-static void
-test_dump_rand_state(void)
-{
-       static int seen_count = -1;
-       int count = rand_get_seed_count();
-       if (count == seen_count)
-               return;
-       seen_count = count;
-       if (count > 0)
-               printf("test: random seed #%i was %u\n", 
-                      rand_get_seed_count(),
-                      rand_get_last_seed());
-       else
-               printf("test: random seed unknown\n");
-}
-
 void test_end(void)
 {
        if (!expecting_fatal)
@@ -84,8 +68,6 @@ void test_end(void)
                test_assert(test_prefix != NULL);
 
        test_out("", test_success);
-       if (!test_success)
-               test_dump_rand_state();
        i_free_and_null(test_prefix);
        test_success = FALSE;
 }
@@ -184,7 +166,6 @@ test_error_handler(const struct failure_context *ctx,
        }
 
        if (!suppress) {
-               test_dump_rand_state();
                default_error_handler(ctx, format, args);
        }
 }