File 0219-distribution_SUITE-Add-a-test-for-the-no_epmd-option.patch of Package erlang
From 766d65a28740cdfaf58c637b078b793c8b0ad7d5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9r=C3=B4me=20de=20Bretagne?=
<jerome.debretagne@gmail.com>
Date: Mon, 12 Apr 2021 22:42:30 +0200
Subject: [PATCH 3/3] distribution_SUITE: Add a test for the -no_epmd option
---
erts/emulator/test/distribution_SUITE.erl | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/erts/emulator/test/distribution_SUITE.erl b/erts/emulator/test/distribution_SUITE.erl
index 128c9b07e0..b7d871637e 100644
--- a/erts/emulator/test/distribution_SUITE.erl
+++ b/erts/emulator/test/distribution_SUITE.erl
@@ -62,7 +62,7 @@
bad_dist_ext_control/1,
bad_dist_ext_connection_id/1,
bad_dist_ext_size/1,
- start_epmd_false/1, epmd_module/1,
+ start_epmd_false/1, no_epmd/1, epmd_module/1,
bad_dist_fragments/1,
exit_dist_fragments/1,
message_latency_large_message/1,
@@ -104,7 +104,7 @@ all() ->
{group, message_latency}, exit_dist_fragments,
{group, bad_dist}, {group, bad_dist_ext},
dist_entry_refc_race,
- start_epmd_false, epmd_module, system_limit,
+ start_epmd_false, no_epmd, epmd_module, system_limit,
hopefull_data_encoding, hopefull_export_fun_bug,
huge_iovec, creation_selection].
@@ -2547,6 +2547,11 @@ start_epmd_false(Config) when is_list(Config) ->
ok.
+no_epmd(Config) when is_list(Config) ->
+ %% Trying to start a node with -no_epmd but without passing the
+ %% --proto_dist option should fail.
+ {error, timeout} = start_node(no_epmd, "-no_epmd").
+
epmd_module(Config) when is_list(Config) ->
%% We need a relay node to test this, since the test node uses the
%% standard epmd module.
--
2.26.2