[gnumeric] zzufit: put fuzzer command into log.



commit b999ba4fff1e8b63fc1a4d29dd5bb2ce1d204592
Author: Morten Welinder <terra gnome org>
Date:   Sun Aug 8 17:10:15 2010 -0400

    zzufit: put fuzzer command into log.

 test/zzufit |   11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)
---
diff --git a/test/zzufit b/test/zzufit
index 8f88ab8..432a691 100755
--- a/test/zzufit
+++ b/test/zzufit
@@ -34,12 +34,11 @@ while (1) {
     }
 
     my $zzuffile = "$DIR/${filebase}-${n}${fileext}";
-    if ($xml) {
-	system ("./fuzzxml -s$n -r$rate '$file' '$zzuffile'");
-    } else {
-	system ("zzuf -s$n -r$rate <'$file' >'$zzuffile'");
-    }
-    &append_log ("Corrupted file is $zzuffile\n");
+    my $fuzzcmd = $xml
+	? "./fuzzxml -s$n -r$rate '$file' '$zzuffile'"
+	: "zzuf -s$n -r$rate <'$file' >'$zzuffile'";
+    &append_log ("Fuzz command $fuzzcmd\n");
+    system ($fuzzcmd);
 
     my $outfile = "$DIR/${filebase}-${n}.gnumeric";
     system ("../src/ssconvert '$zzuffile' '$outfile' >>'$LOG' 2>&1");



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]