[gnumeric] zzufit: add valgrind option.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] zzufit: add valgrind option.
- Date: Mon, 23 Aug 2010 18:56:17 +0000 (UTC)
commit f22daa2a9d15d8cffa15703e81d771413ca3d458
Author: Morten Welinder <terra gnome org>
Date: Mon Aug 23 14:55:50 2010 -0400
zzufit: add valgrind option.
test/zzufit | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/test/zzufit b/test/zzufit
index 81ac0bc..b5b9e6a 100755
--- a/test/zzufit
+++ b/test/zzufit
@@ -10,12 +10,14 @@ my $LOG = "zzuf.log";
my $DIR = "zzuftmp";
my $xml = 0;
my $ods = 0;
+my $valgrind = 0;
&GetOptions ("rate=f" => \$rate,
"seed=i" => \$n,
"victim=s" => \$file,
'xml' => \$xml,
'ods' => \$ods,
+ 'valgrind' => \$valgrind,
)
or die &usage (1);
@@ -48,7 +50,11 @@ while (1) {
system ($fuzzcmd);
my $outfile = "$DIR/${filebase}-${n}.gnumeric";
- system ("../src/ssconvert '$zzuffile' '$outfile' >>'$LOG' 2>&1");
+ my $cmd = "../src/ssconvert '$zzuffile' '$outfile' >>'$LOG' 2>&1";
+ if ($valgrind) {
+ $cmd = "../libtool --mode=execute valgrind --num-callers=20 $cmd";
+ }
+ system ($cmd);
my $code = $?;
my $sig = $code & 0x7f;
if ($sig) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]