Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:23
erlang
4212-core_alias_SUITE-Slightly-optimize-catastr...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 4212-core_alias_SUITE-Slightly-optimize-catastrophic_runt.patch of Package erlang
From 8cca17dd3274c10eecc8d03f7b20206e3843e946 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Gustavsson?= <bjorn@erlang.org> Date: Wed, 24 Feb 2021 06:07:41 +0100 Subject: [PATCH 2/9] core_alias_SUITE: Slightly optimize catastrophic_runtime/1 --- lib/compiler/test/core_alias_SUITE.erl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/compiler/test/core_alias_SUITE.erl b/lib/compiler/test/core_alias_SUITE.erl index 7e5dc4cbc0..a1db3cd2df 100644 --- a/lib/compiler/test/core_alias_SUITE.erl +++ b/lib/compiler/test/core_alias_SUITE.erl @@ -201,8 +201,8 @@ catastrophic_runtime(Config) -> Path = filename:join(PrivDir, "catastrophic_runtime.erl"), Term = catastrophic_runtime_1(Depth), - Source = <<"-module(catastrophic_runtime). t(Value) -> ", Term/bits, ".">>, - file:write_file(Path, Source), + Source = ["-module(catastrophic_runtime). t(Value) -> ", Term, "."], + ok = file:write_file(Path, Source), {ok, catastrophic_runtime} = compile:file(Path, [return_error]), file:delete(Path), @@ -214,6 +214,6 @@ catastrophic_runtime_1(0) -> catastrophic_runtime_1(N) -> Nested = catastrophic_runtime_1(N - 1), Integer = integer_to_binary(N), - Eq = <<"{{'.',[],[erlang,'=:=']},[],[Value, \"", Integer/bits, "\"]}">>, - <<"{{'.',[],[erlang,atom]},[],[", Nested/bits, ",", Eq/bits, "]}">>. + Eq = [<<"{{'.',[],[erlang,'=:=']},[],[Value, \"">>, Integer, <<"\"]}">>], + [<<"{{'.',[],[erlang,atom]},[],[">>, Nested, <<",">>, Eq, <<"]}">>]. -- 2.26.2
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor