LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File 0338-No-reason-to-refer-to-wxSizer-in-the-test.patch of Package erlang (Project home:Ledest:erlang:20)

From 1d48b1114d195228c750fd0fcd98cb223c714479 Mon Sep 17 00:00:00 2001
From: Kostis Sagonas <kostis@it.uu.se>
Date: Tue, 12 Jun 2018 11:26:00 +0200
Subject: [PATCH 2/2] No reason to refer to wxSizer in the test

---
 lib/hipe/test/basic_SUITE_data/basic_issues_hipe.erl | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/hipe/test/basic_SUITE_data/basic_issues_hipe.erl b/lib/hipe/test/basic_SUITE_data/basic_issues_hipe.erl
index 860d882632..fc87abb54e 100644
--- a/lib/hipe/test/basic_SUITE_data/basic_issues_hipe.erl
+++ b/lib/hipe/test/basic_SUITE_data/basic_issues_hipe.erl
@@ -163,13 +163,13 @@ pair(A, B) -> {A, B}.
 %%--------------------------------------------------------------------
 
 wxSizer_replace() ->
-  wxSizer_replace(wxSizer, wxSizer).
+  wxSizer_replace(?MODULE, ?MODULE).
 
 -define(CLASS(Type, Class), ((Type) =:= Class) orelse (Type):parent_class(Class)).
 
 wxSizer_replace(OldwinT, NewwinT) -> % this function was the culprit
-  ?CLASS(OldwinT, wxSizer),
-  ?CLASS(NewwinT, wxSizer),
+  ?CLASS(OldwinT, ?MODULE),
+  ?CLASS(NewwinT, ?MODULE),
   ok.
 
 parent_class(wxWindow) -> true;
-- 
2.16.4