File 0337-zip_SUITE-Disable-unicode-test-when-unsupported-by-z.patch of Package erlang

From c0dfb1d81b75ebe70981208cdf5d71456bd0cd46 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?John=20H=C3=B6gberg?= <john@erlang.org>
Date: Tue, 18 Feb 2020 12:28:59 +0100
Subject: [PATCH] zip_SUITE: Disable unicode test when unsupported by `zipinfo`

---
 lib/stdlib/test/zip_SUITE.erl | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/lib/stdlib/test/zip_SUITE.erl b/lib/stdlib/test/zip_SUITE.erl
index 095967177b..c1be2786da 100644
--- a/lib/stdlib/test/zip_SUITE.erl
+++ b/lib/stdlib/test/zip_SUITE.erl
@@ -904,13 +904,13 @@ unicode(Config) ->
             test_archive_comment(DataDir),
             test_bad_comment(DataDir),
             test_latin1_archive(DataDir),
-            test_filename_compatibility(),
             case has_zip() of
                 false ->
                     {comment, "No zip program found; skipping some tests"};
                 true ->
                     case zip_is_unicode_aware() of
                         true ->
+                            test_filename_compatibility(),
                             ok;
                         false ->
                             {comment, "Old zip program; skipping some tests"}
@@ -923,9 +923,7 @@ test_filename_compatibility() ->
     Archive = "test.zip",
 
     {ok, Archive} = zip:zip(Archive, [{FancyName, <<"test">>}]),
-    zipinfo_match(Archive, FancyName),
-
-    ok.
+    zipinfo_match(Archive, FancyName).
 
 test_file_comment(DataDir) ->
     Archive = filename:join(DataDir, "zip_file_comment.zip"),
-- 
2.16.4

openSUSE Build Service is sponsored by