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

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

[Octave-bug-tracker] [bug #35038] Test fail in toplev.cc (MinGW)


From: Tatsuro MATSUOKA
Subject: [Octave-bug-tracker] [bug #35038] Test fail in toplev.cc (MinGW)
Date: Mon, 12 Dec 2011 21:42:46 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.121 Safari/535.2

Follow-up Comment #2, bug #35038 (project octave):


octave:2> cmd = ls_command ()
cmd = cmd /C dir /D
octave:3>  [status, output] = system (cmd)
Parameter format not correct - "D"".
status =  127


After 

__ls_command__ = "cmd /C dir /D";


is replaced as


__ls_command__ = "dir /D";


The result is


octave:1>  cmd = ls_command ()
cmd = dir /D
octave:2>  [status, output] = system (cmd)
status = 0
output =  Volume in drive E has no label.
 Volume Serial Number is FB33-3F70

 Directory of e:usrTatsumingwhomeoctavesOctBuildhg-devel

[.]              config.log       [libgnu]         [src]
[..]             config.status    [liboctave]      stamp-h1
.gdbinit         [doc]            libtool          [test]
AUTHORS          [examples]       Makefile         test1.emf
BUGS             INSTALL.OCTAVE   run-octave
config.h         [libcruft]       [scripts]
              12 File(s)      4,918,900 bytes
              10 Dir(s)  185,211,019,264 bytes free



Test of dos.m has a error from the same origin.

Before __ls_command__ is modified


octave:1> test dos.m
Parameter format not correct - "D"".
Parameter format not correct - "D"".
  ***** test
 cmd = ls_command ();
 old_wstate = warning ("query");
 warning ("off", "Octave:undefined-return-values");
 unwind_protect
   [status, output] = dos (cmd);
 unwind_protect_cleanup
   warning (old_wstate);
 end_unwind_protect

 if (ispc () && ! isunix ())
   [status, output] = dos (cmd);
   assert (status, 0);
   assert (ischar (output));
   assert (! isempty (output));
 else
   assert (status, []);
   assert (output, []);
 endif
!!!!! test failed
assert (status,0) expected
0
but got
 127
values do not match


After __ls_command__ is modified


octave:3> test dos.m
PASSES 3 out of 3 tests


"Maybe the problem is that the actual command for MinGW should just be "dir
/D"?" seems to be correct.

Thanks
 


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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