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
parent 18df85a1d2
commit 6d3b90247b

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);