File 0732-common_test-fix-spec.patch of Package erlang

From 35eb5598a0bb86ee21734005f69e78d0c1f3b1e6 Mon Sep 17 00:00:00 2001
From: Anton Thomasson <anton.thomasson@ericsson.com>
Date: Fri, 29 Oct 2021 12:19:37 +0200
Subject: [PATCH] common_test: fix spec

Add missing option to spec for ct_gen_conn:start/4.
Without it, dialyzer thinks ct_telnet:open would always fail
since it supplies this option.
---
 lib/common_test/src/ct_gen_conn.erl | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/common_test/src/ct_gen_conn.erl b/lib/common_test/src/ct_gen_conn.erl
index 47aa5966bb..6e0cc76582 100644
--- a/lib/common_test/src/ct_gen_conn.erl
+++ b/lib/common_test/src/ct_gen_conn.erl
@@ -83,6 +83,7 @@
            | {use_existing_connection, boolean()}
            | {reconnect, boolean()}
            | {forward_messages, boolean()}
+           | {old, boolean()}
       ;    (Name, Address, InitData, CallbackMod)
    -> {ok, handle()} | {error, Reason :: term()}
  when Name :: ct:target_name(),
-- 
2.31.1

openSUSE Build Service is sponsored by