File 0287-common_test-Fix-an-upcoming-warning-that-would-break.patch of Package erlang

From 961f7e96afb4d330735d0455e5fd43cd3730ea11 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?John=20H=C3=B6gberg?= <john@erlang.org>
Date: Thu, 4 Feb 2021 11:36:55 +0100
Subject: [PATCH 07/10] common_test: Fix an upcoming warning that would break
 the build

---
 lib/common_test/src/ct_logs.erl | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/common_test/src/ct_logs.erl b/lib/common_test/src/ct_logs.erl
index cd54c759bb..93c15c490c 100644
--- a/lib/common_test/src/ct_logs.erl
+++ b/lib/common_test/src/ct_logs.erl
@@ -2017,7 +2017,7 @@ update_all_runs_in_cache(AllRunsData) ->
 	    LogCache = #log_cache{version = cache_vsn(),
 				  all_runs = AllRunsData},
 	    case {self(),whereis(?MODULE)} of
-		{_Pid,_Pid} ->
+		{Pid,Pid} ->
 		    %% save the cache in RAM so it doesn't have to be
 		    %% read from file as long as this logger process is alive
 		    put(ct_log_cache,term_to_binary(LogCache));
@@ -2031,7 +2031,7 @@ update_all_runs_in_cache(AllRunsData) ->
 update_all_runs_in_cache(AllRunsData, LogCache) ->
     LogCache1 = LogCache#log_cache{all_runs = AllRunsData},    
     case {self(),whereis(?MODULE)} of
-	{_Pid,_Pid} ->
+	{Pid,Pid} ->
 	    %% save the cache in RAM so it doesn't have to be
 	    %% read from file as long as this logger process is alive
 	    put(ct_log_cache,term_to_binary(LogCache1));
@@ -2665,7 +2665,7 @@ update_tests_in_cache(TempData,LogCache=#log_cache{tests=Tests}) ->
     Tests1 = lists:keysort(1,TempData++Cached1),
     CacheBin = term_to_binary(LogCache#log_cache{tests = Tests1}),
     case {self(),whereis(?MODULE)} of
-	{_Pid,_Pid} ->
+	{Pid,Pid} ->
 	    put(ct_log_cache,CacheBin);
 	_ ->
 	    write_log_cache(CacheBin)
-- 
2.26.2

openSUSE Build Service is sponsored by