multipath-tools tests: fix dmevents test after update_multipath change
Benjamin Marzinski
maintainerPATCH 1/1 multipath-tools tests: fix dmevents test after update_multipath change
The commit ("multipathd: don't modify the multipath device on show commands") changed the paramters for update_multipath(). Update the test to match.
Signed-off-by Benjamin Marzinski <[email protected]>
--- tests/dmevents.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
tests/dmevents.c +1 -2
@@ -332,13 +332,12 @@ void __wrap_remove_map_by_alias(const char *alias, struct vectors * vecs)/* pretend update the pretend dm devices. If fail is set, it * simulates having the dm device removed. Otherwise it just sets * update_nr to record when the update happened */ -int __wrap_update_multipath (struct vectors *vecs,char *mapname,int reset) +int __wrap_update_multipath (struct vectors *vecs,char *mapname) {int fail;check_expected (mapname);assert_ptr_equal (vecs, waiter->vecs); -assert_int_equal (reset,1 ); fail =mock_type (int);if (fail) {assert_int_equal (remove_dm_device_event (mapname),0 );
Signature · 1 line
2.41.0
Quoted 5 lines · Benjamin Marzinski
The commit ("multipathd: don't modify the multipath device on show commands") changed the paramters for
update_multipath(). Update the test to match.Signed-off-by Benjamin Marzinski <[email protected]>
Reviewed-by Martin Wilck <[email protected]>
I'll squash this into "multipathd: don't modify the multipath device on show commands" when applying.
Martin