Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:24
erlang
0243-compiler-Remove-duplicated-directory-name-...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0243-compiler-Remove-duplicated-directory-name-constructi.patch of Package erlang
From 529b3c231b0a3abfe1391be690eec41ccb8a01ae Mon Sep 17 00:00:00 2001 From: Frej Drejhammar <frej.drejhammar@gmail.com> Date: Wed, 28 Jul 2021 11:34:43 +0200 Subject: [PATCH] compiler: Remove duplicated directory name construction in test The variable Listings is equivalent to the already created TargetDir, so remove its definition and use TargetDir instead. --- lib/compiler/test/compile_SUITE.erl | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/compiler/test/compile_SUITE.erl b/lib/compiler/test/compile_SUITE.erl index c9495c3755..c03eb2ad5e 100644 --- a/lib/compiler/test/compile_SUITE.erl +++ b/lib/compiler/test/compile_SUITE.erl @@ -495,16 +495,15 @@ do_file_listings(DataDir, PrivDir, [File|Files]) -> do_listing(Simple, TargetDir, to_pp, ".P"), do_listing(Simple, TargetDir, to_exp, ".E"), do_listing(Simple, TargetDir, to_core0, ".core"), - Listings = filename:join(PrivDir, listings), - ok = file:delete(filename:join(Listings, File ++ ".core")), + ok = file:delete(filename:join(TargetDir, File ++ ".core")), do_listing(Simple, TargetDir, to_core, ".core"), do_listing(Simple, TargetDir, to_kernel, ".kernel"), do_listing(Simple, TargetDir, to_dis, ".dis"), %% Final clean up. lists:foreach(fun(F) -> ok = file:delete(F) end, - filelib:wildcard(filename:join(Listings, "*"))), - ok = file:del_dir(Listings), + filelib:wildcard(filename:join(TargetDir, "*"))), + ok = file:del_dir(TargetDir), do_file_listings(DataDir,PrivDir,Files). -- 2.31.1
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