[test suite] fault injection test for build_cmd() error path
This commit is contained in:
parent
5194b4b69a
commit
270d8bea62
@ -69,6 +69,10 @@ build_cmd(spa_data_t *spadat, const char * const cmd_cycle_str, int timer)
|
||||
acc_port_list_t *port_list = NULL;
|
||||
int i=0, buf_idx=0;
|
||||
|
||||
#if HAVE_LIBFIU
|
||||
fiu_return_on("cmd_cycle_build_err", 0);
|
||||
#endif
|
||||
|
||||
if(expand_acc_port_list(&port_list, spadat->spa_message_remain) != 1)
|
||||
{
|
||||
free_acc_port_list(port_list);
|
||||
|
||||
@ -724,6 +724,22 @@
|
||||
'fw_rule_created' => $REQUIRE_NO_NEW_RULE,
|
||||
},
|
||||
|
||||
### cmd cycle
|
||||
{
|
||||
'category' => 'fault injection',
|
||||
'subcategory' => 'server',
|
||||
'detail' => 'tag cmd_cycle_build_err',
|
||||
'function' => \&fault_injection_tag,
|
||||
'no_ip_check' => 1,
|
||||
'client_pkt_tries' => 1,
|
||||
'cmdline' => $default_client_hmac_args,
|
||||
'fwknopd_cmdline' => "$fwknopdCmd -c $cf{'disable_aging'} -a " .
|
||||
"$cf{'hmac_cmd_open_close_multi_cycle_access'} " .
|
||||
"-d $default_digest_file -p $default_pid_file $intf_str " .
|
||||
"--fault-injection-tag cmd_cycle_build_err",
|
||||
'fw_rule_created' => $REQUIRE_NO_NEW_RULE,
|
||||
},
|
||||
|
||||
### client timeout tags
|
||||
{
|
||||
'category' => 'fault injection',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user