changeset 13282:4cca76e15876

Fix test for tilde_expand() on MinGW (Bug #33862) * sysdep.cc (tilde_expand): Don't use fullfile() for tests because it does not respect thte file separator of the running operating system.
author Rik <octave@nomad.inbox5.com>
date Thu, 06 Oct 2011 14:24:38 -0700
parents 834f904a3dcb
children 5d3d802c772e
files src/sysdep.cc
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/sysdep.cc	Thu Oct 06 16:44:18 2011 +0100
+++ b/src/sysdep.cc	Thu Oct 06 14:24:38 2011 -0700
@@ -878,7 +878,7 @@
 %!   setenv ("HOME", "foobar");
 %! endif
 %! home = getenv ("HOME");
-%! assert (tilde_expand ("~/foobar"), fullfile (home, "foobar"));
+%! assert (tilde_expand ("~/foobar"), [home filesep() "foobar"]);
 %! assert (tilde_expand ("/foo/bar"), "/foo/bar");
 %! assert (tilde_expand ("foo/bar"), "foo/bar");
 */