PEPPLER.ORG
Michael Peppler
Sybase Consulting
Menu
Home
Sybase on Linux
Install Guide for Sybase on Linux
General Sybase Resources
General Perl Resources
Freeware
Sybperl
Sybase::Simple
DBD::Sybase
BCP Tool
Bug Tracker
Mailing List Archive
Downloads Directory
FAQs
Sybase on Linux FAQ
Sybperl FAQ
Personal
Michael Peppler's resume

sybperl-l Archive

Up    Prev    Next    

From: mpeppler at itf dot ch (Michael Peppler)
Subject: Perl 5.002gamma & sybperl 2.03 make test
Date: Feb 22 1996 7:46AM

> From: "David N. Blank-Edelman" 
>
>   For a little more info, turning on TEST_VERBOSE yields (for the
> DBlib test):
> 
> [ascutney: /ccs/src/unix/perl-5.002gamma/ext/sybperl-2.03/DBlib] > make test
> PERL_DL_NONLAZY=1 ../../../perl/ -I../blib/arch/ -I../blib/lib/ -I../../../lib/ -I../../../lib/ -e 'use Test::Harness qw(&runtests $verbose); $verbose=1; runtests @ARGV;' t/*.t
> t/dblib.............Subroutine Sybase::DBlib::SUCCEED redefined at (eval 2) line 1.
> Subroutine Sybase::DBlib::NO_MORE_RESULTS redefined at (eval 5) line 1.
> Subroutine Sybase::DBlib::FAIL redefined at (eval 8) line 1.

A bug that existed in 5.001 had been corrected in 5.002b2, but
reappeared in 5.002gamma.

It's not a problem, unless you run a lot of scripts with -w (warnings
turned on). The solution is to edit DBlib.pm and CTlib.pm and change
the line

if($] >= 5.002) {
eval '....

to

if($] >= 5.003) {   # still busted in 5.002 :-(
eval '....

> ok 12
> ok 12
> Aborting test: output counter mismatch [test 12 answered when test 13 expected]
> FAILED tests 13-16
>         Failed 4/16 tests, 75.00% okay
> Failed 1 test script, 0.00% okay. 3/16 subtests failed, 81.25% okay.
> *** Error code 29
> make: Fatal error: Command failed for target `test_dynamic'

The Test::Harness module has become a little bit pickier, and won't
accept having the test script print the same "ok numer" several times.
This is actually a good thing, but if you take a look in t/dblib.t
you'll see that I print the ok in a loop...

The module nearly certainly works, though....

Michael