develooper Front page | perl.perl6.internals | Postings from September 2002

[perl #17506] [PATCH] lib/Parrot/Configure/Step.pm - litterbug

Thread Next
From:
Bruce Gray
Date:
September 22, 2002 16:38
Subject:
[perl #17506] [PATCH] lib/Parrot/Configure/Step.pm - litterbug
Message ID:
rt-17506-38279.6.53421227801076@bugs6.perl.org
# New Ticket Created by  Bruce Gray 
# Please include the string:  [perl #17506]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt2/Ticket/Display.html?id=17506 >


lib/Parrot/Configure/Step.pm, in sub cc_clean, is trying to 
clean up its test compiles by 'unlink glob <test.*>'.
This fails to remove 'test', the executable name under 
Unixes, because it has no extension. Also, the unlink is
unnecessarily aggressive; it might remove 
'test.o.i_saved_for_a_reason. Step.pm created all the test 
files, and it should know how to enumerate them during 
cleanup. This patch teaches it how.

Hope this helps,
Bruce Gray


-- attachment  1 ------------------------------------------------------
url: http://rt.perl.org/rt2/attach/38279/31132/7e215b/step_test_glob_cleanup.patch


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About