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: Mike Miller
Subject: [Octave-bug-tracker] [bug #54718] __run_test_suite__ doesn't preserve start or working directory
Date: Tue, 25 Sep 2018 17:42:38 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36

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

One more example, that also shows the requirement that the user setting
"sync_octave_directory" needs to be enabled.


__octave_link_gui_preference__ ("filesdockwidget/sync_octave_directory",
"true");
chdir ("/tmp");
__octave_link_gui_preference__ ("editor/show_dbg_file", "false");
__octave_link_gui_preference__ ("editor/show_dbg_file", "true");
chdir (get_home_directory ());
pwd ()


Again, save and run as a script file or combine into a one-liner. The 'pwd'
will show your home directory, but the current directory after returning to
the prompt will be /tmp.

This is slightly different from debug.cc-tst, in that I'm explicitly changing
the "show_dbg_file" setting to "true", where debug.cc-tst is restoring it to
its previous value, which may have been false. If the user setting is set to
false and then restored to false, this bug is also not present.

    _______________________________________________________

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]