diff --git a/tests/src/filemanager/do_panel_cd.c b/tests/src/filemanager/do_panel_cd.c
index 30368be..692c1f6 100644
a
|
b
|
START_TEST (test_do_panel_cd_empty_mean_home) |
60 | 60 | { |
61 | 61 | char *cwd; |
62 | 62 | char *home_wd; |
| 63 | const char *home_directory; |
63 | 64 | struct WPanel *panel; |
64 | 65 | gboolean ret; |
65 | 66 | vfs_path_t *empty_path; |
… |
… |
START_TEST (test_do_panel_cd_empty_mean_home) |
71 | 72 | panel->lwd_vpath = vfs_path_from_str("/"); |
72 | 73 | panel->sort_info.sort_field = g_new0(panel_field_t,1); |
73 | 74 | |
74 | | empty_path = vfs_path_from_str (mc_config_get_home_dir()); |
| 75 | home_directory = mc_config_get_home_dir(); |
| 76 | if (home_directory == NULL) |
| 77 | home_directory = "/home/test"; |
| 78 | |
| 79 | empty_path = vfs_path_from_str (home_directory); |
75 | 80 | |
76 | 81 | /* |
77 | 82 | * normalize path to handle HOME with trailing slashes: |