* 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:
@ -154,11 +154,14 @@ typedef struct {
|
|||||||
static MuResult
|
static MuResult
|
||||||
dir_cb (const char *fullpath, gboolean enter, WalkData *data)
|
dir_cb (const char *fullpath, gboolean enter, WalkData *data)
|
||||||
{
|
{
|
||||||
if (enter)
|
if (enter)
|
||||||
++data->_dir_entered;
|
++data->_dir_entered;
|
||||||
else
|
else
|
||||||
++data->_dir_left;
|
++data->_dir_left;
|
||||||
|
|
||||||
|
/* g_print ("%s: %s: %s\n", __FUNCTION__, enter ? "entering" : "leaving", */
|
||||||
|
/* fullpath); */
|
||||||
|
|
||||||
return MU_OK;
|
return MU_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -181,6 +184,8 @@ test_mu_maildir_walk_01 (void)
|
|||||||
|
|
||||||
tmpdir = copy_test_data ();
|
tmpdir = copy_test_data ();
|
||||||
memset (&data, 0, sizeof(WalkData));
|
memset (&data, 0, sizeof(WalkData));
|
||||||
|
|
||||||
|
/* g_print ("tmpdir: %s\n", tmpdir); */
|
||||||
|
|
||||||
rv = mu_maildir_walk (tmpdir,
|
rv = mu_maildir_walk (tmpdir,
|
||||||
(MuMaildirWalkMsgCallback)msg_cb,
|
(MuMaildirWalkMsgCallback)msg_cb,
|
||||||
|
|||||||
0
src/tests/testdir/tmp/dummy
Normal file
0
src/tests/testdir/tmp/dummy
Normal file
Reference in New Issue
Block a user