File 0545-Don-t-fail-on-empty-plan-handle-it-prf_run_test.patch of Package erlang

From 267f7c673c062b3dfe92c8ff34385ab7fe6ed2e1 Mon Sep 17 00:00:00 2001
From: Nelson Vides <videsnelson@gmail.com>
Date: Fri, 7 May 2021 17:52:41 +0200
Subject: [PATCH 5/6] Don't fail on empty plan, handle it `prf_run_test`

---
 lib/ssl/test/ssl_api_SUITE.erl | 15 ++++++---------
 1 file changed, 6 insertions(+), 9 deletions(-)

diff --git a/lib/ssl/test/ssl_api_SUITE.erl b/lib/ssl/test/ssl_api_SUITE.erl
index 553e835a20..0b5faffd3f 100644
--- a/lib/ssl/test/ssl_api_SUITE.erl
+++ b/lib/ssl/test/ssl_api_SUITE.erl
@@ -650,15 +650,12 @@ prf() ->
 prf(Config) when is_list(Config) ->
     Version = ssl_test_lib:protocol_version(Config),
     TestPlan = proplists:get_value(prf_test_plan, Config),
-    case TestPlan of
-        [] -> ct:fail({error, empty_prf_test_plan});
-        _ -> lists:foreach(fun(Test) ->
-                                   C = proplists:get_value(ciphers, Test),
-                                   E = proplists:get_value(expected, Test),
-                                   P = proplists:get_value(prf, Test),
-                                   prf_run_test(Config, Version, C, E, P)
-                           end, TestPlan)
-    end.
+    lists:foreach(fun(Test) ->
+                          C = proplists:get_value(ciphers, Test),
+                          E = proplists:get_value(expected, Test),
+                          P = proplists:get_value(prf, Test),
+                          prf_run_test(Config, Version, C, E, P)
+                  end, TestPlan).
 
 %%--------------------------------------------------------------------
 dh_params() ->
-- 
2.26.2

openSUSE Build Service is sponsored by