diff --git a/tools/selective_cfi/tests/test_libc.sh b/tools/selective_cfi/tests/test_libc.sh
index 6217f8c8e032d43be87d9f7d063281bf0667028a..bd043f6e28838c4ec90a64e8d1f1834269357b88 100755
--- a/tools/selective_cfi/tests/test_libc.sh
+++ b/tools/selective_cfi/tests/test_libc.sh
@@ -59,7 +59,7 @@ clean()
 {
 	rm out
 	rm correct
-	rm -Rf foo.exe peasoup_exe* libfoo.so libfoo.so.orig libfoo.so.cfi foo.cfi foo.exe.cfi
+	rm -Rf *.orig *libc*.exe *libc.*cfi
 }
 
 report ()
@@ -75,7 +75,7 @@ main()
 	protect
 #	get_correct
 #	report
-#	clean
+	clean
 }
 
 passes=0