[Reproducible-commits] [strip-nondeterminism] 03/04: t/fixtures.t: Don't run normalizer if we didn't find one.

Chris Lamb chris at chris-lamb.co.uk
Sun Jul 24 22:15:57 UTC 2016


This is an automated email from the git hooks/post-receive script.

lamby pushed a commit to branch master
in repository strip-nondeterminism.

commit 14382973a95e4c69c06738a9b464d638a945964f
Author: Chris Lamb <lamby at debian.org>
Date:   Sun Jul 24 23:04:05 2016 +0100

    t/fixtures.t: Don't run normalizer if we didn't find one.
    
    Signed-off-by: Chris Lamb <lamby at debian.org>
---
 t/fixtures.t | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/t/fixtures.t b/t/fixtures.t
index f4c42e0..7412209 100644
--- a/t/fixtures.t
+++ b/t/fixtures.t
@@ -45,7 +45,7 @@ foreach my $filename (@fixtures) {
 		plan tests => 2;
 
 		isnt(undef, $normalizer, "Normalizer found for $in");
-		$normalizer->($in);
+		$normalizer->($in) if defined $normalizer;
 		ok(compare($in, $out) == 0, "Got expected output");
 	}
 }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/strip-nondeterminism.git



More information about the Reproducible-commits mailing list