octave-maintainers
[Top][All Lists]
Advanced

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

cannot reproduce test failures


From: c.
Subject: cannot reproduce test failures
Date: Sat, 7 Dec 2013 18:17:45 +0100

Hi, 

I just built octave-3.8.0-rc1 on OSX 10.9 using macports for dependencies.
Running either "make check" or __run_test_suite__ I get:

Summary:

 PASS 11441 
 FAIL 7 
 XFAIL 6 
 SKIPPED 53

Most failures look harmless except the ones below in io.tst, so I was trying to 
see what is causing them, but if I run the same tests from the command line I 
see
no error ...

Does anyone have any idea why this could be happening?

Thanks,
c.


>>>>> processing io.tst
  ***** testif HAVE_ZLIB

 [save_status, save_files] = testls (0);
 [load_status, load_files] = testls (1);

 for f = [save_files, load_files]
   unlink (f{1});
 endfor

 assert (save_status && load_status);
!!!!! test failed
save: unable to open output file 'text.mat'
  ***** test

 STR.scalar_fld = 1;
 STR.matrix_fld = [1.1,2;3,4];
 STR.string_fld = "Octave";
 STR.struct_fld.x = 0;
 STR.struct_fld.y = 1;

 save struct.dat -struct STR;
 STR = load ("struct.dat");

 assert (STR.scalar_fld == 1 && ...
         STR.matrix_fld == [1.1,2;3,4] && ...
         STR.string_fld == "Octave" && ...
         STR.struct_fld.x == 0 && ...
         STR.struct_fld.y == 1 );


 save -binary struct.dat -struct STR matrix_fld str*_fld;
 STR = load ("struct.dat");

 assert (!isfield (STR,"scalar_fld") && ...
         STR.matrix_fld == [1.1,2;3,4] && ...
         STR.string_fld == "Octave" && ...
         STR.struct_fld.x == 0 && ...
         STR.struct_fld.y == 1);

 delete struct.dat;
!!!!! test failed
save: unable to open output file 'struct.dat'
  ***** test
 matrix1 = rand (100, 2);
 save -ascii matrix.ascii matrix1
 matrix2 = load ("matrix.ascii");
 assert (matrix1, matrix2, 1e-9);

 delete matrix.ascii;
!!!!! test failed
save: unable to open output file 'matrix.ascii'

reply via email to

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