[Reproducible-commits] [strip-nondeterminism] 01/04: t/fixtures.t: move to using subtests
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 b425976ec651a74703008123f7d79b9d9bb7ec7e
Author: Chris Lamb <lamby at debian.org>
Date: Sun Jul 24 23:02:48 2016 +0100
t/fixtures.t: move to using subtests
---
t/fixtures.t | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/t/fixtures.t b/t/fixtures.t
index 329d46c..26f9d04 100644
--- a/t/fixtures.t
+++ b/t/fixtures.t
@@ -38,7 +38,13 @@ foreach my $filename (@fixtures) {
(my $out = $filename) =~ s/\.in$/.out/;
copy($filename, $in) or die "Copy failed: $!";
- File::StripNondeterminism::get_normalizer_for_file($in)->($in);
- ok(compare($in, $out) == 0, "$filename -> $out");
+ my $normalizer = File::StripNondeterminism::get_normalizer_for_file($in);
+
+ subtest $filename => sub {
+ plan tests => 1;
+
+ $normalizer->($in);
+ 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