mirror of
https://gitee.com/acl-dev/acl.git
synced 2024-12-14 08:50:53 +08:00
9697f95b8f
This reverts commit 15d999759e
.
35 lines
720 B
C
35 lines
720 B
C
#include "lib_acl.h"
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
|
|
#include "unit_test.h"
|
|
|
|
int test_unit_param(AUT_LINE *test_line, void *arg_unused acl_unused)
|
|
{
|
|
char myname[] = "test_unit_param";
|
|
const char *account, *sender;
|
|
int number;
|
|
|
|
AUT_SET_STR(test_line, "account", account);
|
|
AUT_SET_STR(test_line, "sender", sender);
|
|
AUT_SET_INT(test_line, "number", number);
|
|
|
|
printf("%s: account=%s, sender=%s, number=%d\n",
|
|
myname, account, sender, number);
|
|
|
|
return (0);
|
|
}
|
|
|
|
int test_unit_loop(AUT_LINE *test_line, void *arg_unused acl_unused)
|
|
{
|
|
int count, i;
|
|
|
|
AUT_SET_INT(test_line, "count", count);
|
|
if (count <= 0)
|
|
count = 1;
|
|
|
|
for (i = 0; i < count; i++) {}
|
|
|
|
return (0);
|
|
}
|