Subject: | Load Crypt::Random::TESHA2 only after OS check in t/04-win32.t |
Date: | Sat, 16 Feb 2013 15:17:54 +0100 |
To: | bug-Crypt-Random-Seed [...] rt.cpan.org |
From: | Salvatore Bonaccorso <carnil [...] cpan.org> |
Hi Dana
I'm currently trying to package Crypt::Random::Seed (thanks!) and
following that Bytes::Random::Secure for Debian. During first look I
noticed in t/04-win32.t:
Would it be possible to put the BEGIN block checking for Win32 before
loading a module used in the test, specifically Crypt::Random::TESHA2
in this case.
----cut---------cut---------cut---------cut---------cut---------cut-----
--- a/t/04-win32.t
+++ b/t/04-win32.t
@@ -1,7 +1,6 @@
#!/usr/bin/env perl
use strict;
use warnings;
-use Crypt::Random::TESHA2;
BEGIN {
if ($^O ne 'MSWin32') {
@@ -10,6 +9,8 @@
}
}
+use Crypt::Random::TESHA2;
+
use Test::More tests => 3;
require_ok("Win32");
----cut---------cut---------cut---------cut---------cut---------cut-----
Many thanks for your development of this module!
Regards,
Salvatore