bugGNU Octave - Bugs: bug #54386, fwrite/fread test fails on Solaris


bug #54386: fwrite/fread test fails on Solaris

Submitter:  John W. Eaton <jwe>
Submitted:  Thu 26 Jul 2018 01:16:51 PM UTC
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  None Assigned to:  None
Originator Name:  Open/Closed:  * Open
Release:  * dev Operating System:  * Solaris/SunOS
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup

Thu 26 Jul 2018 01:16:51 PM UTC, original submission:  

The following test fails on Solaris:

>>>>> processing io.tst
***** test
 x = char (128:255)';
 nm = tempname ();
 mode = "wb";
 [id, err] = fopen (nm, mode);
 if (id < 0)
   __printf_assert__ ("open failed: %s (%s): %s\n", nm, mode, err);
   fwrite (id, x);
   fclose (id);
   mode = "rb";
   [id, err] = fopen (nm, mode);
   if (id < 0)
     __printf_assert__ ("open failed: %s (%s): %s\n", nm, mode, err);
     y = fread (id, Inf, "uchar=>char");
     fclose (id);
     assert (x, y);
     unlink (nm);
!!!!! test failed
ASSERT errors for:  assert (x,y)

  Location  |  Observed  |  Expected  |  Reason

John W. Eaton <jwe>
Group administrator


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

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by jwe (Submitted the item)

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.


    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-3cd0.
    Corresponding source code