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

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

[Octave-bug-tracker] [bug #54718] __run_test_suite__ doesn't preserve st


From: Rik
Subject: [Octave-bug-tracker] [bug #54718] __run_test_suite__ doesn't preserve start or working directory
Date: Tue, 25 Sep 2018 11:48:55 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:62.0) Gecko/20100101 Firefox/62.0

Follow-up Comment #8, bug #54718 (project octave):

I never run with the preference setting for synchronizing the GUI directory
with Octave, but that is definitely required.  If I turn on that setting and
execute the code from comment #6 then I can produce this bug on the
development branch.  A binary search of the files showed that debug.cc-tst is
the one causing the problem.   Within that file, it is the call to
__octave_link_gui_preference__ that seems to cause the problem.  When I
comment those out the test passes and the directory returns to the correct
one. 


## DO NOT EDIT!  Generated automatically from debug.cc by Make.
%!test
%! if (isguirunning ())
%!   orig_show_dbg = "0";
%!   #orig_show_dbg = __octave_link_gui_preference__ ("editor/show_dbg_file",
"0");
%! endif
%! unwind_protect
%!   dbclear all;   # Clear out breakpoints before test
%!   dbstop @ftp/dir;
%!   dbstop @audioplayer/set 70;
%!   dbstop quantile>__quantile__;
%!   dbstop ls;
%!   s = dbstatus;
%!   dbclear all;
%!   assert (s(1).name, "@audioplayer/set>setproperty");
%!   assert (s(2).name, "@ftp/dir");
%!   assert (s(3).name, "ls");
%!   assert (s(4).name, "quantile>__quantile__");
%!   assert (s(2).file(end-10:end), [filesep "@ftp" filesep "dir.m"]);
%! unwind_protect_cleanup
%!   if (isguirunning ())
%!    # __octave_link_gui_preference__ ("editor/show_dbg_file",
orig_show_dbg);
%!   endif
%! end_unwind_protect




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?54718>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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