Closed
Bug 690206
Opened 13 years ago
Closed 6 years ago
Add output when compiler exits with non-zero exitcode; add compiler output to verbose
Categories
(Tamarin Graveyard :: Tools, enhancement, P4)
Tracking
(Not tracked)
RESOLVED
WONTFIX
Q1 12 - Brannan
People
(Reporter: cpeyer, Assigned: cpeyer)
Details
Attachments
(1 file, 4 obsolete files)
3.75 KB,
patch
|
brbaker
:
review+
|
Details | Diff | Splinter Review |
Add compiler output to verbose mode.
When compiler exits with non-zero exitcode, display an error message. Note that only a message is displayed, the test is not failed.
Attachment #563276 -
Flags: review?(brbaker)
Comment 1•13 years ago
|
||
Comment on attachment 563276 [details] [diff] [review]
add error and verbose output
(Call me crazy, but it seems like this patch includes a lot of stuff that is not relevant to this ticket.)
Comment 2•13 years ago
|
||
Comment on attachment 563276 [details] [diff] [review]
add error and verbose output
Review of attachment 563276 [details] [diff] [review]:
-----------------------------------------------------------------
please clean up the patch
Attachment #563276 -
Flags: review?(brbaker) → review-
Assignee | ||
Comment 3•13 years ago
|
||
Forgot a . when creating patch. Correct patch now pushed.
Attachment #563276 -
Attachment is obsolete: true
Attachment #563437 -
Flags: review?(brbaker)
Comment 4•13 years ago
|
||
Comment on attachment 563437 [details] [diff] [review]
Correct patch
Review of attachment 563437 [details] [diff] [review]:
-----------------------------------------------------------------
I don't think this is doing what you want. I tweaked a file that I was forcing to be recompiled and the exitcode from the compilation was still 0 even though it did not compile. I duplicated the COMPILER EXITCODE logging outside of the if block, and you can see that it is returning 0 even though it fails to compile.
./runtests.py -f as3/AbcDecoder/simple.as
Tamarin tests started: 2011-09-29 13:33:31.278748
current configuration: x64-mac-tvm-release
avm version: 6579:41f0b26644a0
asc version: 5
thread count: 24
Executing 1 tests against vm: /Users/brbaker/hg/tamarin-redux/objdir/shell/avmshell
ERROR! COMPILER EXITCODE=0
[Compiler] Error #1084: Syntax error: expecting identifier before semicolon.
as3/AbcDecoder/simple.as, Ln 46, Col 4:
var;
...^
1 error found
FAILED! file did not compile: as3/AbcDecoder/simple.abc
FAILURES:
as3/AbcDecoder/simple.abc : FAILED! file did not compile: as3/AbcDecoder/simple.abc
END FAILURES
::: test/util/runtestBase.py
@@ +1066,5 @@
> try:
> (f,err,exitcode) = self.run_pipe('%s %s' % (cmd,as_file),
> outputCalls=outputCalls)
> + if exitcode != 0:
> + outputCalls.append((self.js_print, ('ERROR! COMPILER EXITCODE='+exitcode,)))
Can't combine string and ints here, need to do:
'ERROR! COMPILER EXITCODE=%s'%exitcode
Attachment #563437 -
Flags: review?(brbaker) → review-
Comment 5•13 years ago
|
||
(In reply to Brent Baker from comment #4)
> ::: test/util/runtestBase.py
> @@ +1066,5 @@
> > try:
> > (f,err,exitcode) = self.run_pipe('%s %s' % (cmd,as_file),
> > outputCalls=outputCalls)
> > + if exitcode != 0:
> > + outputCalls.append((self.js_print, ('ERROR! COMPILER EXITCODE='+exitcode,)))
>
> Can't combine string and ints here, need to do:
>
> 'ERROR! COMPILER EXITCODE=%s'%exitcode
Actually I guess it should be:
outputCalls.append((self.js_print, ('ERROR! COMPILER EXITCODE=%i'%exitcode,)))
Assignee | ||
Comment 6•13 years ago
|
||
Attachment #563437 -
Attachment is obsolete: true
Attachment #563457 -
Flags: review?(brbaker)
Comment 7•13 years ago
|
||
Comment on attachment 563457 [details] [diff] [review]
fix str + int issue
Review of attachment 563457 [details] [diff] [review]:
-----------------------------------------------------------------
Still marking as r- since asc is returning a 0 exitcode even when it fails to compile, so this is NOT doing what you expect
Attachment #563457 -
Flags: review?(brbaker) → review-
Assignee | ||
Comment 8•13 years ago
|
||
Unfortunately asc has a zero exitcode even when there are errors, so the exitcode checking only applies to falcon.
Verbose code still works for both compilers.
Attachment #563457 -
Attachment is obsolete: true
Attachment #563466 -
Flags: review?(brbaker)
Updated•13 years ago
|
Attachment #563466 -
Flags: review?(brbaker) → review+
Updated•13 years ago
|
Flags: flashplayer-triage+
Flags: flashplayer-qrb+
Flags: flashplayer-injection-
Flags: flashplayer-bug-
Target Milestone: --- → Q1 12 - Brannan
Assignee | ||
Comment 9•13 years ago
|
||
Improvement on previous patch. Treat non-zero exitcode as a failure, add support to set it as an expected failure.
Attachment #563466 -
Attachment is obsolete: true
Attachment #566658 -
Flags: review?(brbaker)
Updated•13 years ago
|
Attachment #566658 -
Flags: review?(brbaker) → review+
Comment 10•6 years ago
|
||
Tamarin is a dead project now. Mass WONTFIX.
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
Comment 11•6 years ago
|
||
Tamarin isn't maintained anymore. WONTFIX remaining bugs.
You need to log in
before you can comment on or make changes to this bug.
Description
•