[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #50157] fwrite input argument type
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #50157] fwrite input argument type |
Date: |
Thu, 26 Jan 2017 17:49:05 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0 |
Follow-up Comment #6, bug #50157 (project octave):
New failing test in io.tst after running 'make check':
>>>>> processing io.tst
***** test
classes = {"int8", "int16", "int32", "int64", ...
"uint8", "uint16", "uint32", "uint64", ...
"single", "double"};
nm = tempname ();
id = fopen (nm, "wb+");
n = numel (classes);
for i = 1:n
cls = classes{i};
s_in = ones (1, 1, cls);
m_in = ones (2, 2, cls);
m_shape = size (m);
fwrite (id, s, numel (s), cls);
fwrite (id, m, numel (m), cls);
frewind (id);
s_out = fread (id, numel (s_in), sprintf ("%s=>%s", cls, cls));
m_out = fread (id, numel (m_in), sprintf ("%s=>%s", cls, cls));
m_out = reshape (m_out, m_shape);
fclose (id);
unlink (nm);
assert (s_in, s_out);
assert (m_in, m_out);
endfor
!!!!! test failed
'm' undefined near line 13 column 20
Looks like instances of "m" should be replaced with "m_in", and "s" with
"s_in".
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?50157>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #50157] fwrite input argument type, Guillaume, 2017/01/26
- [Octave-bug-tracker] [bug #50157] fwrite input argument type, Rik, 2017/01/26
- [Octave-bug-tracker] [bug #50157] fwrite input argument type, John W. Eaton, 2017/01/26
- [Octave-bug-tracker] [bug #50157] fwrite input argument type, Rik, 2017/01/26
- [Octave-bug-tracker] [bug #50157] fwrite input argument type, John W. Eaton, 2017/01/26
- [Octave-bug-tracker] [bug #50157] fwrite input argument type, Rik, 2017/01/26
- [Octave-bug-tracker] [bug #50157] fwrite input argument type,
Rik <=
- [Octave-bug-tracker] [bug #50157] fwrite input argument type, John W. Eaton, 2017/01/26
- [Octave-bug-tracker] [bug #50157] fwrite input argument type, John W. Eaton, 2017/01/26
- [Octave-bug-tracker] [bug #50157] fwrite input argument type, Guillaume, 2017/01/27