diff options
| author | liuwentan <[email protected]> | 2023-11-29 16:56:33 +0800 |
|---|---|---|
| committer | liuwentan <[email protected]> | 2023-11-29 16:56:33 +0800 |
| commit | 2f50548d96a5908f4309e58dbbd45a9e42609384 (patch) | |
| tree | 61c5cfdc420ca0829d074be38fa613bebc7bfc53 /test/maat_framework_gtest.cpp | |
| parent | 43903581324000150aff2009e3746ac5ae890b78 (diff) | |
[PATCH]adjust table_info for compile/group2compile tablev4.1.13
Diffstat (limited to 'test/maat_framework_gtest.cpp')
| -rw-r--r-- | test/maat_framework_gtest.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/test/maat_framework_gtest.cpp b/test/maat_framework_gtest.cpp index b8d0c98..e5dc8ee 100644 --- a/test/maat_framework_gtest.cpp +++ b/test/maat_framework_gtest.cpp @@ -153,7 +153,7 @@ int compile_table_set_line(struct maat *maat_inst, const char *table_name, { char table_line[1024 * 16] = {0}; sprintf(table_line, "%lld\t0\t0\t0\t0\t0\t%s\t%d\t%d\t0.0", - compile_id, user_region, op, clause_num); + compile_id, user_region, clause_num, op); struct maat_cmd_line line_rule; line_rule.rule_id = compile_id; @@ -166,7 +166,6 @@ int compile_table_set_line(struct maat *maat_inst, const char *table_name, #define TO_GROUP2X_KEY(group_id, parent_id, clause_index) (((unsigned long)group_id<<32|parent_id) + clause_index) - int group2compile_table_set_line(struct maat *maat_inst, const char *table_name, enum maat_operation op, long long group_id, long long compile_id, int not_flag, @@ -174,8 +173,8 @@ int group2compile_table_set_line(struct maat *maat_inst, const char *table_name, int expire_after) { char table_line[128] = {0}; - sprintf(table_line, "%lld\t%lld\t%d\t%d\t%s\t%d", - group_id, compile_id, op, not_flag, vtable_name, clause_index); + sprintf(table_line, "%lld\t%lld\t%d\t%s\t%d\t%d", + group_id, compile_id, not_flag, vtable_name, clause_index, op); struct maat_cmd_line line_rule; line_rule.rule_id = TO_GROUP2X_KEY(group_id, compile_id, clause_index); |
