octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #48312] MXE Octave: test fails


From: Mike Miller
Subject: [Octave-bug-tracker] [bug #48312] MXE Octave: test fails
Date: Sun, 26 Jun 2016 21:45:10 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:47.0) Gecko/20100101 Firefox/47.0

Follow-up Comment #10, bug #48312 (project octave):

Re fntests.log: maybe, no idea.

Don't use length, use size. I get r2 is a character matrix of size 7×30, r4
is a row vector of size 1×217. Then after the line r2=disp(r2), r2 also
becomes a row vector of size 1×217 (the array is interpolated into a single
string with newline characters). Since you have r4 of length 224, which is
217+7, I would bet money on r4 containing CR-NL sequences and r2 not,
resulting in the test failing.

To run all tests in a file, use the function form of test() and request output
arguments. This lets all the tests run through and it reports which ones
passed or failed. If you just run "test FILE" it will bail out at the first
failure.

Try for example


>> more off
>> [a,b,c,d] = test ("io.tst", "quiet", stdout)


This should print to your command window exactly the same output that you
would normally see in the fntests.log file, and return the numbers of passes,
total tests, fails, and disabled tests.



    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?48312>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]