tests/.../do_panel_cd.c: show patch mismath on test failure

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
This commit is contained in:
Sergei Trofimovich 2012-03-20 23:39:38 +03:00 committed by Slava Zanko
parent 12018c5e5a
commit f5550766fe

View File

@ -76,7 +76,14 @@ START_TEST (test_do_panel_cd_empty_mean_home)
fail_unless(ret);
cwd = vfs_path_to_str (panel->cwd_vpath);
fail_unless(strcmp(cwd, mc_config_get_home_dir ()) == 0);
ret = strcmp(cwd, mc_config_get_home_dir ()) == 0;
if (!ret)
{
printf ("cwd=%s\n", cwd);
printf ("mc_config_get_home_dir ()=%s\n", mc_config_get_home_dir ());
}
fail_unless(ret);
vfs_path_free (panel->cwd_vpath);