bug-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bison 3.7.90 (beta): test 4


From: Dagobert Michelsen
Subject: Re: Bison 3.7.90 (beta): test 4
Date: Thu, 19 Aug 2021 09:13:13 +0200

Hi Akim,

Am 19.08.2021 um 09:03 schrieb Akim Demaille <akim@lrde.epita.fr>:
> The test case 4 fails this way:
> 
> ./input.at:104: "$PERL" -p -e 's{([\0\200\210\360\377])}{sprintf "\\x%02x", 
> ord($1)}ge' stderr
> 2c2
> <     1 | %header "\xf0\x00\x80\x88"
> ---
>>    1 | %header "\xf0\x80\x88"
> 5c5
> <     2 | \x00\xff?
> ---
>>    2 | \xff?
> 8c8
> <     3 | "\x00"
> ---
>>    3 | ""
> 
> So there is something fishy going on with the nul bytes.  I don't know if 
> it's in the input generated by the test suite, the processing by Bison, or 
> the pricessing of the diagnostics by the test suite.
> 
> Could you please send tests/testsuite.dir/004/input.y as an attachment?  The 
> results of
> 
> - od -x _build/g11d/tests/testsuite.dir/004/input.y
> - LC_ALL=C tests/bison  tests/testsuite.dir/004/input.y 2>log
> 
> could be useful too.  Thanks!

Sure:

dam@unstable10s 
[unstable10s]:/home/dam/mgar/pkg/bison/trunk/work/solaris10-sparc/build-isa-sparcv8plus/bison-3.7.90
 > od -s ./tests/testsuite.dir/004/input.y  
0000000  09576  25953  25701  29216  08944  00128 -30686  02560
0000020  00258 -00193  02594  00034  02597  09482  16138  25701
0000040  26209  30060  29754  08231  24871  08317  02597  09738
0000060  09569  11620  28517  29485  28271  29741  25976  26995
0000100  29706  09517  02597  31498
0000110
dam@unstable10s 
[unstable10s]:/home/dam/mgar/pkg/bison/trunk/work/solaris10-sparc/build-isa-sparcv8plus/bison-3.7.90
 > LC_ALL=C tests/bison  tests/testsuite.dir/004/input.y 2>log
zsh: 27301 exit 1     LC_ALL=C tests/bison tests/testsuite.dir/004/input.y 2> 
log
dam@unstable10s 
[unstable10s]:/home/dam/mgar/pkg/bison/trunk/work/solaris10-sparc/build-isa-sparcv8plus/bison-3.7.90
 > more log
tests/testsuite.dir/004/input.y:1.11: error: invalid null character
    1 | %header "���"
      |           ^
tests/testsuite.dir/004/input.y:2.1-2: error: invalid characters: 
'\0\001\002\377?'
    2 | �?
      | ^~
tests/testsuite.dir/004/input.y:3.2: error: invalid null character
    3 | ""
      |  ^
tests/testsuite.dir/004/input.y:5.1: error: invalid character: '?'
    5 | ?
      | ^
tests/testsuite.dir/004/input.y:6.14: error: invalid character: '}'
    6 | default: 'a' }
      |              ^
tests/testsuite.dir/004/input.y:7.1: error: invalid character: '%'
    7 | %&
      | ^
tests/testsuite.dir/004/input.y:7.2: error: invalid character: '&'
    7 | %&
      |  ^
tests/testsuite.dir/004/input.y:8.1-17: error: invalid directive: 
'%a-does-not-exist'
    8 | %a-does-not-exist
      | ^~~~~~~~~~~~~~~~~
tests/testsuite.dir/004/input.y:9.1: error: invalid character: '%'
    9 | %-
      | ^
tests/testsuite.dir/004/input.y:9.2: error: invalid character: '-'
    9 | %-
      |  ^
tests/testsuite.dir/004/input.y:10.1-11.0: error: missing '%}' at end of file
   10 | %{
      | ^~
dam@unstable10s 
[unstable10s]:/home/dam/mgar/pkg/bison/trunk/work/solaris10-sparc/build-isa-sparcv8plus/bison-3.7.90
 >  


Best regards

  — Dago


-- 
"You don't become great by trying to be great, you become great by wanting to 
do something,
and then doing it so hard that you become great in the process." - xkcd #896




reply via email to

[Prev in Thread] Current Thread [Next in Thread]