File 3090-kernel-Allow-to-clear-domain-in-inet_db-api.patch of Package erlang

From 0e8e4d03ea21082bf7fb64fc08711f951cabb165 Mon Sep 17 00:00:00 2001
From: Lukas Larsson <lukas@erlang.org>
Date: Mon, 3 Jan 2022 15:05:55 +0100
Subject: [PATCH 10/11] kernel: Allow to clear domain in inet_db api

If we do not allow this, we need to change the inet_res_SUITE
testcase so that it knows how to cleanup the domain after
running.
---
 lib/kernel/test/inet_res_SUITE.erl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/kernel/test/inet_res_SUITE.erl b/lib/kernel/test/inet_res_SUITE.erl
index 0214db00e5..6020f3855c 100644
--- a/lib/kernel/test/inet_res_SUITE.erl
+++ b/lib/kernel/test/inet_res_SUITE.erl
@@ -633,7 +633,7 @@ name_addr_and_cached(Config) when is_list(Config) ->
         %% should get identical results from the cache
         name_addr(Domain, fun toupper/1)
     after
-        [inet_db:res_option(Option, Value)
+        [ok = inet_db:res_option(Option, Value)
          || {Option, Value} <- SavedOptions]
     end,
     ?P("done"),
-- 
2.31.1

openSUSE Build Service is sponsored by