test-mu-store-query: make move/refresh test more rigorous
This commit is contained in:
@ -561,6 +561,7 @@ Boo!
|
|||||||
assert_equal(qr->begin().message()->path(), old_path);
|
assert_equal(qr->begin().message()->path(), old_path);
|
||||||
g_assert_true(::access(old_path.c_str(), F_OK) == 0);
|
g_assert_true(::access(old_path.c_str(), F_OK) == 0);
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* mark as read, i.e. move to cur/; ensure it really moved.
|
* mark as read, i.e. move to cur/; ensure it really moved.
|
||||||
*/
|
*/
|
||||||
@ -575,9 +576,11 @@ Boo!
|
|||||||
|
|
||||||
/* also ensure thath the cached sexp for the message has been updated;
|
/* also ensure thath the cached sexp for the message has been updated;
|
||||||
* that's what mu4e uses */
|
* that's what mu4e uses */
|
||||||
const auto moved_sexp{moved_msg->to_sexp().to_sexp_string()};
|
const auto moved_sexp{moved_msg->to_sexp()};
|
||||||
/* clumsy */
|
g_assert_true(moved_sexp.is_prop_list());
|
||||||
g_assert_true(moved_sexp.find(new_path) != std::string::npos);
|
const auto plist{Sexp::List(moved_sexp.list())};
|
||||||
|
g_assert_true(plist.has_prop(":path"));
|
||||||
|
assert_equal(plist.find_prop(":path").value(), new_path);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* find new message with query, ensure it's really that new one.
|
* find new message with query, ensure it's really that new one.
|
||||||
|
|||||||
Reference in New Issue
Block a user