Subject: | Error 'nmake test' on Win32 Activestate Pel |
When performing "nmake test" on Win32 I receive the following:
Can't open perl script "dirsync": No such file or directory
Compilation failure: at 100_load.t line 12.
not ok 1
The problem is that /dev/null in line 12 of 100_load.pl is not portable with Win32 (Activestate Perl).
For me, removing "2>/dev/null" worked, but might not be the right solution.
Show quoted text
---- Configuration follows -----------------------------------------------
Distribution: File-DirSync-1.12
OS: Windows XP SP2
Perl -v:
This is perl, v5.8.7 built for MSWin32-x86-multi-thread
(with 7 registered patches, see perl -V for more detail)
Copyright 1987-2005, Larry Wall
Binary build 813 [148120] provided by ActiveState http://www.ActiveState.com
ActiveState is a division of Sophos.
Built Jun 6 2005 13:36:37
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using `man perl' or `perldoc perl'. If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.
-Jim Roberts
# Before `make install' is performed this script should be runnable with
# `make test'. After `make install' it should work as `perl test.t'
######################### We start with some black magic to print on failure.
use Test;
BEGIN { plan tests => 1; $loaded = 0}
END { ok $loaded;}
# Just make sure everything compiles
$exefile = "dirsync";
system("$^X -Iblib/lib -T -c $exefile") &&
die "Compilation failure: ".`$^X -Iblib/lib -T -c $exefile`;
$loaded = 1;
######################### End of black magic.
# Insert your test code below (better if it prints "ok 13"
# (correspondingly "not ok 13") depending on the success of chunk 13
# of the test code):