File 2350-Show-test-case-progress.patch of Package erlang

From 220d5c905bb24538643866c6e605180e6a166acb Mon Sep 17 00:00:00 2001
From: Raimo Niskanen <raimo@erlang.org>
Date: Thu, 27 Apr 2017 09:24:25 +0200
Subject: [PATCH] Show test case progress

---
 lib/stdlib/test/rand_SUITE.erl | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/lib/stdlib/test/rand_SUITE.erl b/lib/stdlib/test/rand_SUITE.erl
index cb97d2799..19553d0cf 100644
--- a/lib/stdlib/test/rand_SUITE.erl
+++ b/lib/stdlib/test/rand_SUITE.erl
@@ -1,7 +1,7 @@
 %%
 %% %CopyrightBegin%
 %%
-%% Copyright Ericsson AB 2000-2016. All Rights Reserved.
+%% Copyright Ericsson AB 2000-2017. All Rights Reserved.
 %%
 %% Licensed under the Apache License, Version 2.0 (the "License");
 %% you may not use this file except in compliance with the License.
@@ -317,8 +317,9 @@ basic_stats_normal(Config) when is_list(Config) ->
     ct:timetrap({minutes, 6 * length(IntendedMeanVariancePairs)}), %% valgrind needs a lot of time
     lists:foreach(
       fun ({IntendedMean, IntendedVariance}) ->
-              io:format("Testing normal(~.2f, ~.2f)~n",
-                        [float(IntendedMean), float(IntendedVariance)]),
+              ct:pal(
+                "Testing normal(~.2f, ~.2f)~n",
+                [float(IntendedMean), float(IntendedVariance)]),
               [basic_normal_1(?LOOP, IntendedMean, IntendedVariance,
                               rand:seed_s(Alg), 0, 0)
                || Alg <- algs()]
-- 
2.12.2

openSUSE Build Service is sponsored by