Commit 9f1d5ced 9f1d5ced7ae7ba2489e5c3908b846f1c3f30889f by Sergey Poznyakoff

sieve: improve address tests

* libmu_sieve/tests.c (retrieve_address): Treat MU_ERR_EMPTY_ADDRESS
as MU_ERR_NOENT.  This complements 678d9367
1 parent 3b0dfa60
...@@ -71,8 +71,15 @@ retrieve_address (void *item, void *data, size_t idx, char **pval) ...@@ -71,8 +71,15 @@ retrieve_address (void *item, void *data, size_t idx, char **pval)
71 return MU_ERR_NOENT; 71 return MU_ERR_NOENT;
72 rc = mu_address_create (&ap->addr, val); 72 rc = mu_address_create (&ap->addr, val);
73 free (val); 73 free (val);
74 if (rc) 74 switch (rc)
75 return rc; 75 {
76 case MU_ERR_EMPTY_ADDRESS:
77 case MU_ERR_NOENT:
78 return MU_ERR_NOENT;
79
80 default:
81 return rc;
82 }
76 } 83 }
77 84
78 rc = ap->aget (ap->addr, idx+1, pval); 85 rc = ap->aget (ap->addr, idx+1, pval);
......