Mercurial > octave
diff test/fntests.m @ 27569:29ccef7e5295
New function "is_same_file".
* utils.cc (Fis_same_file): New function that checks if two paths refer to the
same file or folder.
* system.txi: Add function to manual.
* dir.m, run.m, unpack.m, pkg/private/install.m, fntests.m: Use new function
instead of "strcmp".
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Sun, 27 Oct 2019 09:59:39 +0100 |
parents | 00f796120a6d |
children | b442ec6dda5c |
line wrap: on
line diff
--- a/test/fntests.m Sat Oct 26 19:00:54 2019 -0700 +++ b/test/fntests.m Sun Oct 27 09:59:39 2019 +0100 @@ -32,7 +32,7 @@ topsrcdir = canonicalize_file_name (fullfile (xdir, "..")); topbuilddir = canonicalize_file_name (fullfile (currdir, "..")); -if (strcmp (currdir, srcdir)) +if (is_same_file (currdir, srcdir)) testdirs = {srcdir}; else testdirs = {currdir, srcdir}; @@ -45,7 +45,7 @@ fundirs = {liboctave_tree, src_tree, script_tree}; -if (! strcmp (currdir, srcdir)) +if (! is_same_file (currdir, srcdir)) fundirs{end+1} = local_script_tree; endif