bugGNU Octave - Bugs: bug #50235, return code is zero, even if there...

 
 

bug #50235: return code is zero, even if there was an error

Submitted by:  Carnë Draug <carandraug>
Submitted on:  Mon 06 Feb 2017 03:07:46 AM UTC  
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Regression
Status:  Duplicate Assigned to:  None
Originator Name:  Open/Closed:  Closed
Release:  4.2.0 Operating System:  GNU/Linux

Add a New Comment (Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 09 Feb 2017 12:26:20 AM UTC, comment #3: 

Yes, we probably should have tests for this kind of thing.  Can we do it reasonably within the existing test framework, or is this something we should do with a shell script?  Is a shell script sufficient?  I think it should be because we don't really need to worry about continuing after a test failure that causes a segfault, for exmaple.

John W. Eaton <jwe>
Project Administrator
Mon 06 Feb 2017 10:49:29 AM UTC, comment #2: 

Ah! I missed that bug report because no one mentioned the return code. We should have test units for this stuff.

Carnë Draug <carandraug>
Project Member
Mon 06 Feb 2017 10:18:21 AM UTC, comment #1: 

This was reported and fixed in bug #49271.

Guillaume <gyom>
Mon 06 Feb 2017 03:07:46 AM UTC, original submission:  

If there is an error in an Octave program, the return code should be non-zero.  This was the behaviour in previous versions, but seems like this bug creped in version 4.2:

$ octave-3.8.2 --quiet --eval "error ('foo');" ; echo $?
error: foo
1
$ octave-4.0.1 --quiet --eval "error ('foo');" ; echo $?
error: foo
1
$ /usr/local/bin/octave-4.2.0 --quiet --eval "error ('foo');" ; echo $?
error: foo
error: unhandled execution exception -- eval failed
0

Carnë Draug <carandraug>
Project Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Digest:
   bug dependencies.

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jwe (Posted a comment)
  • -email is unavailable- added by gyom (Posted a comment)
  • -email is unavailable- added by carandraug (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

     

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-02-06 carandraug StatusNone => Duplicate
    2017-02-06 carandraug Open/ClosedOpen => Closed
        Dependencies- => Depends on bugs #49271

    Back to the top


    Powered by Savane 3.5