diff --git a/tests/fate-run.sh b/tests/fate-run.sh
index 278e2479bcaff1769e4cec150915feac0e18e21c..bf6280541469c13ce334aff6366e611ed69c5c10 100755
--- a/tests/fate-run.sh
+++ b/tests/fate-run.sh
@@ -32,3 +32,5 @@ case $cmp in
     diff)   diff -u -w "$ref" "$outfile"            ;;
     oneoff) oneoff     "$ref" "$outfile" "$fuzz"    ;;
 esac
+
+test $? = 0 && rm $outfile