git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] t9500: skip gitweb tests if perl version is too old

From
SVSven Verdoolaege <skimo@kotnet.org>
Date
Jun 23, 2007, 08:57 UTC
Message-ID
<20070623085751.GX955MdfPADPa@greensroom.kotnet.org>
In-Reply-To
<7vps3n89mb.fsf@assigned-by-dhcp.pobox.com>
On Fri, Jun 22, 2007 at 11:31:40PM -0700, Junio C Hamano wrote:
Show 14 quoted lines
> Sven Verdoolaege <skimo@kotnet.org> writes:
> > +perl -MEncode -e 'decode_utf8("", Encode::FB_CROAK)' >/dev/null 2>&1 || {
> > +    test_expect_success 'skipping gitweb tests, perl version is too old' :
> > +    test_done
> > +    exit
> > +}
> > +
> 
> Hmph.  Even something silly like:
> 
> 	perl -MEncode -e 'decode_utf8("", Encode::FB_CLUCK)'
> 
> seem to succeed for me with 5.8.8.
> 

Maybe I'm missing something, but it's supposed to succeed for perl versions that are recent enough.

I get

bash-3.00$ perl -MEncode -e 'decode_utf8("", Encode::FB_CROAK)' Too many arguments for Encode::decode_utf8 at -e line 1, at end of line Execution of -e aborted due to compilation errors. bash-3.00$ perl --version

This is perl, v5.8.0 built for i686-linux-thread-multi
Copyright 1987-2002, 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.com/, the Perl Home Page.

(See also http://article.gmane.org/gmane.comp.version-control.git/50354)
skimo
Previous: Junio C HamanoNext: Junio C Hamano
Message 3 of 5 in “t9500: skip gitweb tests if perl version is too old”
  1. t9500: skip gitweb tests if perl version is too oldSven Verdoolaege, Jun 22, 2007
  2. Junio C HamanoJun 23, 2007
  3. Sven VerdoolaegeJun 23, 2007
  4. Junio C HamanoJun 23, 2007
  5. Sven VerdoolaegeJun 23, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.