# HG changeset patch # User Rik # Date 1317936278 25200 # Node ID 4cca76e15876df6a1284ba60b4226e7e67c77c06 # Parent 834f904a3dcbdc16c046341207783dcfbe1a6ee0 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. diff -r 834f904a3dcb -r 4cca76e15876 src/sysdep.cc --- 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"); */