* unbreak the unit tests for git checkouts

the git version was broken because git doesn't accept empty dirs;
  added tmp/dummy to fix this.
This commit is contained in:
djcb 2010-08-14 15:19:08 +03:00
parent f09b1e08d8
commit 488fef2d04
2 changed files with 6 additions and 1 deletions

View File

@ -154,11 +154,14 @@ typedef struct {
static MuResult
dir_cb (const char *fullpath, gboolean enter, WalkData *data)
{
if (enter)
if (enter)
++data->_dir_entered;
else
++data->_dir_left;
/* g_print ("%s: %s: %s\n", __FUNCTION__, enter ? "entering" : "leaving", */
/* fullpath); */
return MU_OK;
}
@ -181,6 +184,8 @@ test_mu_maildir_walk_01 (void)
tmpdir = copy_test_data ();
memset (&data, 0, sizeof(WalkData));
/* g_print ("tmpdir: %s\n", tmpdir); */
rv = mu_maildir_walk (tmpdir,
(MuMaildirWalkMsgCallback)msg_cb,

View File