Mercurial > octave
changeset 30269:313da8fd4657
test: Use directory in "is_same_file" test that exists in all mingw environments.
* libinterp/corefcn/utils.cc (is_same_file): Use directory in test that exists
in all Windows environments.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Mon, 01 Nov 2021 18:22:20 +0100 |
parents | 007dd7d008b3 |
children | 14f443a73558 |
files | libinterp/corefcn/utils.cc |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/corefcn/utils.cc Mon Nov 01 17:38:03 2021 +0100 +++ b/libinterp/corefcn/utils.cc Mon Nov 01 18:22:20 2021 +0100 @@ -390,8 +390,7 @@ %!testif ; ! ispc () %! assert (is_same_file ("~", tilde_expand ("~"))); %!testif ; ispc () -%! assert (is_same_file (tolower (getenv ("OCTAVE_HOME")), -%! toupper (getenv ("OCTAVE_HOME"))), true); +%! assert (is_same_file (tolower (tempdir ()), toupper (tempdir ())), true); %!assert (is_same_file ({pwd(), ".", tempdir()}, canonicalize_file_name (".")), %! [true, true, false])