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

[perl #18044] Assembler doesn't return a useful exit status

Thread Next
From:
Clinton Pierce
Date:
October 21, 2002 13:26
Subject:
[perl #18044] Assembler doesn't return a useful exit status
Message ID:
rt-18044-40276.14.3788259753906@bugs6.perl.org
# New Ticket Created by  Clinton Pierce 
# Please include the string:  [perl #18044]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt2/Ticket/Display.html?id=18044 >


  * With bad arguments, the assembler returns 1 to the OS.  Peachy.

  * Upon success, the assembler returns the status 0 to the OS and will
write the bytecode as requested.

  * Upon failure, the assembler returns the status 0 to the OS and writes
some bytecode.  No telling how healthy that bytecode is.  

Makes it tough to write a harness during testing.

IMHO, the assembler should (at least) return a different exit code for
bytecode not fully assembled.  Optimally, it shouldn't even write out the
partial bytecode.



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