Skip Menu |

This queue is for tickets about the ParseLex CPAN distribution.

Report information
The Basics
Id: 12846
Status: resolved
Priority: 0/
Queue: ParseLex

People
Owner: Nobody in particular
Requestors: nick [...] usenix.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 2.15
Fixed in: (no value)



Subject: bug in test4.t
The expected results for test4.t are exepecting the word "chunk" in the stderr stream, but actually get "line". sh-2.05b# make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/test1....ok t/test2....ok t/test3....ok t/test4....FAILED test 1 Failed 1/1 tests, 0.00% okay t/test5....ok t/test6....ok t/test7....ok Failed Test Stat Wstat Total Fail Failed List of Failed ------------------------------------------------------------------------------- t/test4.t 1 1 100.00% 1 Failed 1/7 test scripts, 85.71% okay. 1/7 subtests failed, 85.71% okay. make: *** [test_dynamic] Error 255 ============================================= sh-2.05b# perl examples/ctokenizer.pl > /dev/null Trace is ON in class Parse::CLex [main::lexer|Parse::CLex] Token read (INTEGER, [1-9][0-9]*): 1 [main::lexer|Parse::CLex] Token read (ADDOP, [-+]): + [main::lexer|Parse::CLex] Token read (INTEGER, [1-9][0-9]*): 2 [main::lexer|Parse::CLex] Token read (ADDOP, [-+]): - [main::lexer|Parse::CLex] Token read (INTEGER, [1-9][0-9]*): 5 [main::lexer|Parse::CLex] Token read (NEWLINE, \n): [main::lexer|Parse::CLex] Token read (STRING, \"(?:[^\"]+|\"\")*\"): "This is a multiline string with an embedded "" in it" [main::lexer|Parse::CLex] Token read (NEWLINE, \n): [main::lexer|Parse::CLex] Token read (ERROR, .*): this is an invalid string with a "" in it" can't analyze: "this is an invalid string with a "" in it"" at examples/ctokenizer.pl line 17, <DATA> line 4. This is with perl 5.8.4 (the "chuck" or "line" string comes from the "die" function).
--- t/test4.t.old 1999-09-23 01:16:26.000000000 -0700 +++ t/test4.t 2005-05-16 12:39:40.000000000 -0700 @@ -54,4 +54,4 @@ [main::lexer|Parse::CLex] Token read (NEWLINE, \n): [main::lexer|Parse::CLex] Token read (ERROR, .*): this is an invalid string with a "" in it" -can't analyze: "this is an invalid string with a "" in it"" at examples/ctokenizer.pl line 17, <DATA> chunk 4. +can't analyze: "this is an invalid string with a "" in it"" at examples/ctokenizer.pl line 17, <DATA> line 4.
 VERSION 2.16 - 5/01/2010
 
o New maintainer pscust@cpan.org
o Parse::Template 0.33 : Fix syntax errors
  Solves RT #7880, #12845, #14785, #11807, #48964, #53112
o Parse::Token    2.16 : Fix syntax errors
  Solves RT #12845, #36285, #48964, #53112
o test4.t : adapt to current Perl (line vs chunk)
  Solves RT #158, #11808, #11809, #12846, #14785, #48964, #53112
o tests : add blib/lib to Perl path
  Solves RT #48964, #53112
o Added test8.t with code from RT #1861, but error is not reproduced in Perl 5.10, and 
  patch does not work in Perl 5.10; patch not added.