about summary refs log tree commit diff
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2020-04-03 10:43:52 +0200
committervan Hauser <vh@thc.org>2020-04-09 10:23:37 +0200
commita26726342021d690c83914b410f2938841c07c6b (patch)
treeeb50c29bac45baa8982f57aa02f640e08f637937
parentc14fd1ad18aabd7a946d13e883f8d035650ed993 (diff)
downloadafl++-a26726342021d690c83914b410f2938841c07c6b.tar.gz
unit tests cleaning
-rw-r--r--GNUmakefile5
-rw-r--r--test/unittests/unit_list.c2
2 files changed, 5 insertions, 2 deletions
diff --git a/GNUmakefile b/GNUmakefile
index c03d635c..ff27e125 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -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
 	./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:
 	./.custom-format.py -i src/*.c
diff --git a/test/unittests/unit_list.c b/test/unittests/unit_list.c
index 03217112..11d3227c 100644
--- a/test/unittests/unit_list.c
+++ b/test/unittests/unit_list.c
@@ -90,7 +90,7 @@ static void test_long_list(void **state) {
     LIST_FOREACH(&testlist, u32, {
         result1 += *el;
     });
-    printf("removing %d\n", vals[50]);
+    //printf("removing %d\n", vals[50]);
     list_remove(&testlist, &vals[50]);
 
     LIST_FOREACH(&testlist, u32, {