initparams(&p);
p.removeiface = 1;
+ suppress_output();
handleremoveinterface(&p);
}
END_TEST
ret = db_addinterface("known");
ck_assert_int_eq(ret, 1);
+ suppress_output();
handleremoveinterface(&p);
}
END_TEST
ret = db_addinterface("known");
ck_assert_int_eq(ret, 1);
+ suppress_output();
handleremoveinterface(&p);
}
END_TEST
ret = db_addinterface("known");
ck_assert_int_eq(ret, 1);
+ suppress_output();
handleremoveinterface(&p);
/* TODO: add way to check that removal did happen */
}
initparams(&p);
p.renameiface = 1;
+ suppress_output();
handlerenameinterface(&p);
}
END_TEST
p.renameiface = 1;
p.defaultiface = 0;
+ suppress_output();
handlerenameinterface(&p);
}
END_TEST
ret = db_addinterface("somename");
ck_assert_int_eq(ret, 1);
+ suppress_output();
handlerenameinterface(&p);
}
END_TEST
ret = db_addinterface("newname");
ck_assert_int_eq(ret, 1);
+ suppress_output();
handlerenameinterface(&p);
}
END_TEST
defaultcfg();
initparams(&p);
+
p.renameiface = 1;
p.defaultiface = 0;
p.force = 0;
ret = db_addinterface("oldname");
ck_assert_int_eq(ret, 1);
+ suppress_output();
handlerenameinterface(&p);
}
END_TEST
ret = db_addinterface("oldname");
ck_assert_int_eq(ret, 1);
+ suppress_output();
handlerenameinterface(&p);
/* TODO: add way to check that rename did happen */
}