-
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#201: add testcases for Subroutine import redefined at .../Config.pm
- Loading branch information
Reini Urban
committed
Nov 14, 2013
1 parent
4a9d2dc
commit 0652c17
Showing
2 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#! /usr/bin/env perl | ||
# http://code.google.com/p/perl-compiler/issues/detail?id=201 | ||
# Subroutine import redefined at .../Config.pm line 38 | ||
BEGIN { | ||
unless (-d '.git') { | ||
print "1..0 #SKIP Only if -d .git\n"; | ||
exit; | ||
} | ||
} | ||
use strict; | ||
use Test::More tests => 2; | ||
|
||
my $X = $^X =~ m/\s/ ? qq{"$^X"} : $^X; | ||
my $perlcc = "$X -Iblib/arch -Iblib/lib blib/script/perlcc"; | ||
|
||
my $result = `$perlcc -r -e 'use Storable;*Storable::CAN_FLOCK=sub{1};print qq{ok\n}' 2>err`; | ||
my $err = do { local $/; open my $fh, "err"; <$fh> }; | ||
is($err, "", "stderr"); | ||
is($result, "ok\n"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters