summaryrefslogtreecommitdiff
path: root/t/lib
diff options
context:
space:
mode:
authorGraham Barr <gbarr@pobox.com>1998-07-21 08:07:29 -0500
committerGurusamy Sarathy <gsar@cpan.org>1998-07-22 07:40:25 +0000
commit3d64f815ef217a3ad06ad31fd93b22f22fa8e287 (patch)
treeac5eb6c0c786d58a96f0e918f9346721d60b4d19 /t/lib
parent7a5f8e8207845ff5a07842e34a6849920492a274 (diff)
downloadperl-3d64f815ef217a3ad06ad31fd93b22f22fa8e287.tar.gz
better diagnostic on errno.t failure
Message-Id: <19980721130729.K4337@asic.sc.ti.com> p4raw-id: //depot/perl@1630
Diffstat (limited to 't/lib')
-rwxr-xr-xt/lib/errno.t16
1 files changed, 15 insertions, 1 deletions
diff --git a/t/lib/errno.t b/t/lib/errno.t
index 0e0462b32a..361723f1b2 100755
--- a/t/lib/errno.t
+++ b/t/lib/errno.t
@@ -32,5 +32,19 @@ print "ok 4\n";
$s1 = join(",",sort keys(%!));
$s2 = join(",",sort @Errno::EXPORT_OK);
-print "not " unless $s1 eq $s2;
+if($s1 ne $s2) {
+ my @s1 = keys(%!);
+ my @s2 = @Errno::EXPORT_OK;
+ my(%s1,%s2);
+ @s1{@s1} = ();
+ @s2{@s2} = ();
+ delete @s2{@s1};
+ delete @s1{@s2};
+ print "# These are only in \%!\n";
+ print "# ",join(" ",map { "'$_'" } keys %s1),"\n";
+ print "# These are only in \@EXPORT_OK\n";
+ print "# ",join(" ",map { "'$_'" } keys %s2),"\n";
+ print "not ";
+}
+
print "ok 5\n";