Re: BIST tests for run.m

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: BIST tests for run.m

Rik-4
I changed the BIST tests slightly to more reliably remove the temporary
files (http://hg.savannah.gnu.org/hgweb/octave/rev/d139435d9193).  "rmdir"
was being used which won't actually remove the directory if it has a file
in it.  Also, I was finding that the argument to rmdir was a variable
created in the unwind_protect block and so it might fail to be available in
the cleanup portion.

In addition, you have discovered a large bug in dir_in_loadpath.  It seems
that whenever the argument is an absolute path, the function just returns
the input argument.  This also affects file_in_loadpath.  For example,

octave:12> dir_in_loadpath ("/home")
ans = /home
octave:13> file_in_loadpath ("/home")
ans = /home

I will create a bug report for this.

--Rik