Skip Menu |

This queue is for tickets about the Sepia CPAN distribution.

Report information
The Basics
Id: 27484
Status: resolved
Priority: 0/
Queue: Sepia

People
Owner: seano [...] cpan.org
Requestors: stro [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.91
Fixed in: 0.91



Subject: Test::Expect and MSWin32
Test::Expect is incompatible with native Win32 environment, so corresponding tests should be dropped when $^O eq 'MSWin32', or test should be skiped if "eval 'use Test::Expect';" fails (now test fails). So, instead of BEGIN { eval 'use Test::Expect'; if ($@) { print STDERR "All skipped -- requires Test::Expect.\n$@\n"; print "0..0\n"; exit 0; } } there should be BEGIN { eval 'use Test::Expect'; if ($@) { eval 'use Test; plan tests => 34;'; skip('Test::Expect is required'); } } -- Serguei Trouchelle
Subject: Re: [rt.cpan.org #27484] Test::Expect and MSWin32
Date: Thu, 07 Jun 2007 09:07:52 -0700
To: bug-sepia [...] rt.cpan.org
From: "Sean O'Rourke" <sorourke [...] cs.ucsd.edu>
"Serguei Trouchelle via RT" <bug-sepia@rt.cpan.org> writes: Show quoted text
> Test::Expect is incompatible with native Win32 environment, so > corresponding tests should be dropped when $^O eq 'MSWin32', or test > should be skiped if "eval 'use Test::Expect';" fails (now test fails).
Thanks for the report. I ended up using the following: BEGIN { eval 'use Test::Expect'; if ($@) { print "# requires Test::Expect\n1..1\nok 1\n"; exit 0; } else { eval 'use Test::Simple tests => 34'; } }