File 3222-ftp-Make-sure-init_per_test-does-not-crash-when-it-s.patch of Package erlang
From 16ff6b8bc7d36ed21811bd33498b9fd700e337db Mon Sep 17 00:00:00 2001
From: Ingela Anderton Andin <ingela@erlang.org>
Date: Fri, 19 Feb 2021 09:51:21 +0100
Subject: [PATCH 2/3] ftp: Make sure init_per_test does not crash when it
should skip
---
lib/ftp/test/ftp_SUITE.erl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/ftp/test/ftp_SUITE.erl b/lib/ftp/test/ftp_SUITE.erl
index dfb85ff387..8c1e82b7cb 100644
--- a/lib/ftp/test/ftp_SUITE.erl
+++ b/lib/ftp/test/ftp_SUITE.erl
@@ -1216,7 +1216,7 @@ start_ftpd(Config0) ->
Class:Exception ->
ct:log("Ftp server ~p started on ~p:~p but is unusable:~n~p:~p",
[AbsName,Host,Port,Class,Exception]),
- stop_ftpd(Config),
+ catch stop_ftpd(Config),
{skip, [AbsName," started but unusable"]}
end;
{error,Msg} ->
--
2.26.2