Mercurial > octave-nkf
comparison libinterp/corefcn/sysdep.cc @ 20099:ab7582167810
Fix failing BIST test for tilde_expand() on Windows (bug #44796).
* sysdep.cc (Ftilde_expand): Don't use fullfile in BIST test as it
replaces all slashes in path with the current file separator.
author | Rik <rik@octave.org> |
---|---|
date | Thu, 09 Apr 2015 19:53:21 -0700 |
parents | cf9b94a89620 |
children | 4f45eaf83908 |
comparison
equal
deleted
inserted
replaced
20098:654705239575 | 20099:ab7582167810 |
---|---|
1002 } | 1002 } |
1003 | 1003 |
1004 /* | 1004 /* |
1005 %!test | 1005 %!test |
1006 %! home = get_home_directory (); | 1006 %! home = get_home_directory (); |
1007 %! assert (tilde_expand ("~/foobar"), fullfile (home, "/foobar")); | 1007 %! assert (tilde_expand ("~/foobar"), [home "/foobar"]); |
1008 %! assert (tilde_expand ("/foo/bar"), "/foo/bar"); | 1008 %! assert (tilde_expand ("/foo/bar"), "/foo/bar"); |
1009 %! assert (tilde_expand ("foo/bar"), "foo/bar"); | 1009 %! assert (tilde_expand ("foo/bar"), "foo/bar"); |
1010 */ | 1010 */ |
1011 | 1011 |
1012 DEFUN (get_home_directory, , , | 1012 DEFUN (get_home_directory, , , |