Mercurial > octave
changeset 28668:e7248c5f6e1d stable
pathdef.m: Fix BIST tests on Windows 10 systems (bug #59039).
* pathdef.m: Use canonicalize_file_name() to convert any short form path (8.3)
returned by tempname() in to the long form that path() will return.
author | Rik <rik@octave.org> |
---|---|
date | Tue, 01 Sep 2020 08:06:06 -0700 |
parents | 6b964cf58ed4 |
children | 17bcc4048d7a |
files | scripts/path/pathdef.m |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/path/pathdef.m Tue Sep 01 16:28:58 2020 +0200 +++ b/scripts/path/pathdef.m Tue Sep 01 08:06:06 2020 -0700 @@ -106,6 +106,9 @@ %! tmp_dir = tempname (); %! unwind_protect %! mkdir (tmp_dir); +%! ## Required on Windows to make sure an 8.3 name is converted to full name +%! ## which is what is always stored in path(). See bug #59039. +%! tmp_dir = canonicalize_file_name (tmp_dir); %! addpath (tmp_dir); %! p1 = path (); %! p2 = pathdef (); @@ -122,6 +125,7 @@ %! tmp_dir = tempname (); %! unwind_protect %! mkdir (tmp_dir); +%! tmp_dir = canonicalize_file_name (tmp_dir); %! addpath (tmp_dir); %! path_1 = path (); %! p = pathdef ();