Ticket #2803: 2803.patch

File 2803.patch, 899 bytes (added by slavazanko, 12 years ago)
  • tests/src/filemanager/do_panel_cd.c

    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) 
    6060{ 
    6161    char *cwd; 
    6262    char *home_wd; 
     63    const char *home_directory; 
    6364    struct WPanel *panel; 
    6465    gboolean ret; 
    6566    vfs_path_t *empty_path; 
    START_TEST (test_do_panel_cd_empty_mean_home) 
    7172    panel->lwd_vpath = vfs_path_from_str("/"); 
    7273    panel->sort_info.sort_field = g_new0(panel_field_t,1); 
    7374 
    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); 
    7580 
    7681    /* 
    7782     * normalize path to handle HOME with trailing slashes: