Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
dc4e122e
Commit
dc4e122e
authored
Feb 11, 2010
by
Gabor Szabo
Committed by
Max Kanat-Alexander
Feb 11, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 545762: Allow tests to pass when using the PERL5LIB environment variable.
r=mkanat, a=mkanat
parent
a7196a73
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
001compile.t
t/001compile.t
+6
-1
No files found.
t/001compile.t
View file @
dc4e122e
...
...
@@ -27,6 +27,7 @@
use
strict
;
use
5.008001
;
use
lib
qw(. lib t)
;
use
Config
;
use
Support::
Files
;
use
Test::
More
tests
=>
scalar
(
@
Support::Files::
testitems
);
...
...
@@ -59,8 +60,12 @@ sub compile_file {
$T
=
"T"
;
}
my
$libs
=
''
;
if
(
$ENV
{
PERL5LIB
})
{
$libs
=
join
" "
,
map
{
"-I$_"
}
split
/$Config{path_sep}/
,
$ENV
{
PERL5LIB
};
}
my
$perl
=
qq{"$^X"}
;
my
$output
=
`$perl -wc$T $file 2>&1`
;
my
$output
=
`$perl
$libs
-wc$T $file 2>&1`
;
chomp
(
$output
);
my
$return_val
=
$?
;
$output
=~
s/^\Q$file\E syntax OK$//ms
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment