File 6057-parsetools-Fix-tests-to-work-with-space-in-path.patch of Package erlang
From eb88a1861b93d7d0617acfa1213be9427c317568 Mon Sep 17 00:00:00 2001
From: Lukas Larsson <lukas@erlang.org>
Date: Tue, 16 Aug 2022 16:17:51 +0200
Subject: [PATCH 7/9] parsetools: Fix tests to work with space in path
---
lib/parsetools/test/leex_SUITE.erl | 2 +-
lib/parsetools/test/yecc_SUITE.erl | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/parsetools/test/leex_SUITE.erl b/lib/parsetools/test/leex_SUITE.erl
index bef048dc82..54e15b3b79 100644
--- a/lib/parsetools/test/leex_SUITE.erl
+++ b/lib/parsetools/test/leex_SUITE.erl
@@ -1313,7 +1313,7 @@ extract(File, Ts) ->
search_for_file_attr(PartialFilePathRegex, Forms) ->
lists:search(fun
({attribute, _, file, {FileAttr, _}}) ->
- case re:run(FileAttr, PartialFilePathRegex) of
+ case re:run(FileAttr, PartialFilePathRegex, [unicode]) of
nomatch -> false;
_ -> true
end;
diff --git a/lib/parsetools/test/yecc_SUITE.erl b/lib/parsetools/test/yecc_SUITE.erl
index e76b98f0f5..383969e7a8 100644
--- a/lib/parsetools/test/yecc_SUITE.erl
+++ b/lib/parsetools/test/yecc_SUITE.erl
@@ -2326,7 +2326,7 @@ safe_second_element(Other) -> Other.
search_for_file_attr(PartialFilePathRegex, Forms) ->
lists:search(fun
({attribute, _, file, {FileAttr, _}}) ->
- case re:run(FileAttr, PartialFilePathRegex) of
+ case re:run(FileAttr, PartialFilePathRegex, [unicode]) of
nomatch -> false;
_ -> true
end;
--
2.35.3