mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-12 10:08:07 +00:00
unit tests cleaning
This commit is contained in:
@ -337,7 +337,10 @@ unit_preallocable: test/unittests/unit_preallocable.o
|
|||||||
$(CC) $(CFLAGS) $(ASAN_CFLAGS) -Wl,--wrap=exit -Wl,--wrap=printf test/unittests/unit_preallocable.o -o test/unittests/unit_preallocable $(LDFLAGS) $(ASAN_LDFLAGS) -lcmocka
|
$(CC) $(CFLAGS) $(ASAN_CFLAGS) -Wl,--wrap=exit -Wl,--wrap=printf test/unittests/unit_preallocable.o -o test/unittests/unit_preallocable $(LDFLAGS) $(ASAN_LDFLAGS) -lcmocka
|
||||||
./test/unittests/unit_preallocable
|
./test/unittests/unit_preallocable
|
||||||
|
|
||||||
unit: unit_maybe_alloc unit_preallocable unit_list
|
unit_clean:
|
||||||
|
@rm -f ./test/unittests/unit_preallocable ./test/unittests/unit_list ./test/unittests/unit_maybe_alloc test/unittests/*.o
|
||||||
|
|
||||||
|
unit: unit_maybe_alloc unit_preallocable unit_list unit_clean
|
||||||
|
|
||||||
code-format:
|
code-format:
|
||||||
./.custom-format.py -i src/*.c
|
./.custom-format.py -i src/*.c
|
||||||
|
@ -90,7 +90,7 @@ static void test_long_list(void **state) {
|
|||||||
LIST_FOREACH(&testlist, u32, {
|
LIST_FOREACH(&testlist, u32, {
|
||||||
result1 += *el;
|
result1 += *el;
|
||||||
});
|
});
|
||||||
printf("removing %d\n", vals[50]);
|
//printf("removing %d\n", vals[50]);
|
||||||
list_remove(&testlist, &vals[50]);
|
list_remove(&testlist, &vals[50]);
|
||||||
|
|
||||||
LIST_FOREACH(&testlist, u32, {
|
LIST_FOREACH(&testlist, u32, {
|
||||||
|
Reference in New Issue
Block a user