mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-09 16:51:34 +00:00
fix unit test case for long list
This commit is contained in:
parent
8e417ecb5c
commit
9d067d26da
@ -83,6 +83,7 @@ static void test_long_list(void **state) {
|
||||
vals[i] = i;
|
||||
}
|
||||
|
||||
LIST_FOREACH_CLEAR(&testlist, void, {});
|
||||
for (i = 0; i < 100; i++) {
|
||||
list_append(&testlist, &vals[i]);
|
||||
}
|
||||
@ -97,7 +98,7 @@ static void test_long_list(void **state) {
|
||||
result2 += *el;
|
||||
});
|
||||
assert_int_not_equal(result1, result2);
|
||||
assert_int_equal(result1 + 50, result2);
|
||||
assert_int_equal(result1, result2 + 50);
|
||||
|
||||
result1 = 0;
|
||||
LIST_FOREACH_CLEAR(&testlist, u32, {
|
||||
|
Loading…
x
Reference in New Issue
Block a user