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.