Mercurial > octave-nkf
comparison test/system.tst @ 20052:4b7b7ac7af2c
use get_home_directory instead of getenv ("HOME") (bug #44694)
* files-dock-widget.cc (files_dock_widget::popdownmenu_home):
Use get_home_directory instead of getenv ("HOME") for the benefit of
Windows systems which may not have HOME set in the environment.
* kpse.cc (kpse_tilde_expand): Likewise.
* prefdir.m: Likewise.
* system.tst: Likewise.
* edit.m: Use get_home_directory instead of default_home.
(default_home): Delete subfunction.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 02 Apr 2015 13:19:30 -0400 |
parents | 4197fc428c7d |
children |
comparison
equal
deleted
inserted
replaced
20051:47d420d769ba | 20052:4b7b7ac7af2c |
---|---|
266 | 266 |
267 %!assert (getgid () >= 0) | 267 %!assert (getgid () >= 0) |
268 | 268 |
269 %!error <... getgid> getgid (1) | 269 %!error <... getgid> getgid (1) |
270 | 270 |
271 %!assert (getenv ("HOME"), tilde_expand ("~")) | 271 %!assert (get_home_directory (), tilde_expand ("~")) |
272 | 272 |
273 %!error <Invalid call to getenv> getenv () | 273 %!error <Invalid call to getenv> getenv () |
274 %!error <Invalid call to getenv> getenv ("foo", 1) | 274 %!error <Invalid call to getenv> getenv ("foo", 1) |
275 | 275 |
276 %!test | 276 %!test |