Perl / perl5

🐪 The Perl programming language
https://dev.perl.org/perl5/
Other
1.9k stars 541 forks source link

FIX for t/op/filetest: "Can't locate Config_heavy.pl..." #9292

Closed p5pRT closed 11 years ago

p5pRT commented 16 years ago

Migrated from rt.perl.org#52992 (status was 'rejected')

Searchable as RT52992$

p5pRT commented 16 years ago

From LightnerM.ctr@mech.disa.mil

VERSION...

This is perl\, v5.10.0 built for sun4-solaris

Copyright 1987-2007\, Larry Wall

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.

ERROR...

t/op/filetest.................................................Can't locate Config_heavy.pl in @​INC (@​INC contains​: ../lib) at ../lib/Config.pm line 66. # Looks like you planned 24 tests but ran 5. FAILED--expected 24 tests\, saw 5

EXPLANATION

"use Config;" is called by t/op/filetest.t -- at which time Config.pm calls "require 'Config_heavy.pl'" (within the Config.pm - which immediately fails).

Calling "require 'Config_heavy.pl'" first\, within t/op/filetest.t\, prior to the "use Config;" call then resolves this issue.

EXAMPLE

FIX​: Change the following in "t/op/filetest.t"...   use Config;

To the following...   require 'Config_heavy.pl';   use Config;

Thanks\, Mark Lightner (CTR) DISA/GS4B14 Solaris/SFG

 Mark Lightner \(CONTR\)
 DISA/GS4B14 Solaris/SFG Support

 \* Email​:  LightnerM\.CTR@​mech\.disa\.mil
 \* Phone​:  717\.605\.8164 // DSN 430\.8164
    Fax​:    717\.605\.4592 // DSN 430\.4592
 \* Location​: DECC Mechanicsburg CDB14
          5450 Carlisle Pike
          PO Box 2045
          Mechanicsburg PA 17050\-0975

No trees were killed in this message. However\, a large number of electrons were terribly inconvenienced.

p5pRT commented 16 years ago

From @rgs

On 17/04/2008\, via RT Lightner\, Mark CTR DISA GS4B \perlbug\-followup@​perl\.org wrote​:

t/op/filetest.................................................Can't locate Config_heavy.pl in @​INC (@​INC contains​: ../lib) at ../lib/Config.pm line 66. # Looks like you planned 24 tests but ran 5. FAILED--expected 24 tests\, saw 5

Do you have lib/Config_heavy.pl ? or is this file somewhere else or completely non-existent ?

Since Config_heavy.pl is supposed to be produced in lib/\, this code works\, given that the test chdirs to t/ and puts ../lib in @​INC. So I suspect a build problem.

p5pRT commented 16 years ago

The RT System itself - Status changed from 'new' to 'open'

p5pRT commented 16 years ago

From david@landgren.net

Lightner\, Mark CTR DISA GS4B wrote​:

When you have time\, please remove my signature from the past email. I was not aware it would be auto-magically posted - not a bad thing\, just wish I hadn't allowed my contact information to be so widely available :(

Bummer. Alas\, that is no way possible. The perl5-porters list is gated to numerous NNTP feeds and also archived on various web archives. I guess we need to patch perlbug to add a warning that states that email addresses will be published.

David

p5pRT commented 16 years ago

From LightnerM.ctr@mech.disa.mil

I'll live with the "fan mail" for now - but such updates would be greatly appreciated in the future ;)

-----Original Message----- From​: David Landgren [mailto​:david@​landgren.net] Sent​: Monday\, April 28\, 2008 3​:45 PM To​: Lightner\, Mark CTR DISA GS4B Cc​: perlbug-followup@​perl.org Subject​: Re​: [perl #52992] perlbug AutoReply​: FIX for t/op/filetest​: "Can't locate Config_heavy.pl..."

Lightner\, Mark CTR DISA GS4B wrote​:

When you have time\, please remove my signature from the past email. I was not aware it would be auto-magically posted - not a bad thing\, just wish I hadn't allowed my contact information to be so widely available :(

Bummer. Alas\, that is no way possible. The perl5-porters list is gated to numerous NNTP feeds and also archived on various web archives. I guess we need to patch perlbug to add a warning that states that email addresses will be published.

David

p5pRT commented 16 years ago

p5p@spam.wizbit.be - Status changed from 'open' to 'stalled'

p5pRT commented 11 years ago

From @jkeenan

On Fri Apr 18 08​:13​:36 2008\, rafael wrote​:

On 17/04/2008\, via RT Lightner\, Mark \perlbug\-followup@​perl\.org wrote​:

t/op/filetest.................................................Can't locate Config_heavy.pl in @​INC (@​INC contains​: ../lib) at ../lib/Config.pm line 66. # Looks like you planned 24 tests but ran 5. FAILED--expected 24 tests\, saw 5

Do you have lib/Config_heavy.pl ? or is this file somewhere else or completely non-existent ?

Since Config_heavy.pl is supposed to be produced in lib/\, this code works\, given that the test chdirs to t/ and puts ../lib in @​INC. So I suspect a build problem.

Since the OP did not respond to Rafael's question of 4 years ago\, I propose that this ticket -- which was in the stalled queue -- be closed in seven days unless anyone has a serious objection. I will take the ticket for that purpose.

Thank you very much. Jim Keenan

p5pRT commented 11 years ago

The RT System itself - Status changed from 'stalled' to 'open'

p5pRT commented 11 years ago

From @jkeenan

On Sun Oct 07 06​:41​:46 2012\, jkeenan wrote​:

On Fri Apr 18 08​:13​:36 2008\, rafael wrote​:

On 17/04/2008\, via RT Lightner\, Mark \perlbug\-followup@​perl\.org wrote​:

t/op/filetest.................................................Can't locate Config_heavy.pl in @​INC (@​INC contains​: ../lib) at ../lib/Config.pm line 66. # Looks like you planned 24 tests but ran 5. FAILED--expected 24 tests\, saw 5

Do you have lib/Config_heavy.pl ? or is this file somewhere else or completely non-existent ?

Since Config_heavy.pl is supposed to be produced in lib/\, this code works\, given that the test chdirs to t/ and puts ../lib in @​INC. So I suspect a build problem.

Since the OP did not respond to Rafael's question of 4 years ago\, I propose that this ticket -- which was in the stalled queue -- be closed in seven days unless anyone has a serious objection. I will take the ticket for that purpose.

Thank you very much. Jim Keenan

Closing as scheduled.

p5pRT commented 11 years ago

@jkeenan - Status changed from 'open' to 'rejected'