File 0193-ssl-Do-not-clean-app-ENV-in-end_per_testcase.patch of Package erlang

From 01a035ff57c9ecbc731c34e3bbeb4a693eb2f1f0 Mon Sep 17 00:00:00 2001
From: Ingela Anderton Andin <ingela@erlang.org>
Date: Tue, 31 Mar 2020 16:51:38 +0200
Subject: [PATCH] ssl: Do not clean app ENV in end_per_testcase

It shall be cleaned in end_per_group, however
the negative test empty_protocol_versions needs
to clean it to perform its test and should hence
be the last test.
---
 lib/ssl/test/ssl_app_env_SUITE.erl | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/lib/ssl/test/ssl_app_env_SUITE.erl b/lib/ssl/test/ssl_app_env_SUITE.erl
index 233985c729..51de789773 100644
--- a/lib/ssl/test/ssl_app_env_SUITE.erl
+++ b/lib/ssl/test/ssl_app_env_SUITE.erl
@@ -99,6 +99,7 @@ end_per_group(GroupName, Config) ->
     end.
 
 init_per_testcase(internal_active_1, Config) ->
+    ssl_test_lib:ct_log_supported_protocol_versions(Config),
     ssl:stop(),
     application:load(ssl),
     application:set_env(ssl, internal_active_n, 1),
@@ -106,6 +107,7 @@ init_per_testcase(internal_active_1, Config) ->
     ct:timetrap({seconds, 5}),
     Config;
 init_per_testcase(protocol_versions, Config) ->
+    ssl_test_lib:ct_log_supported_protocol_versions(Config),
     Version = ssl_test_lib:protocol_version(Config),
     case atom_to_list(Version) of
         "d" ++ _ ->
@@ -122,6 +124,7 @@ init_per_testcase(protocol_versions, Config) ->
     ct:timetrap({seconds, 5}),
     Config;
 init_per_testcase(empty_protocol_versions, Config)  ->
+    ssl_test_lib:ct_log_supported_protocol_versions(Config),
     ssl:stop(),
     application:load(ssl),
     ssl_test_lib:clean_env(),
@@ -134,8 +137,8 @@ init_per_testcase(_TestCase, Config) ->
     ct:timetrap({seconds, 5}),
     Config.
 
-end_per_testcase(_, _Config) ->
-    ssl_test_lib:clean_start().
+end_per_testcase(_, Config) ->
+    Config.
 
 %%--------------------------------------------------------------------
 %% Test Cases --------------------------------------------------------
-- 
2.16.4

openSUSE Build Service is sponsored by