[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Testsuite summary for GNU Bison 3.8.2 : FAIL 2
From: |
Akim Demaille |
Subject: |
Re: Testsuite summary for GNU Bison 3.8.2 : FAIL 2 |
Date: |
Sat, 9 Oct 2021 10:35:38 +0200 |
Hi Dennis,
Thanks for this bug report.
> Le 5 oct. 2021 à 21:39, Dennis Clarke <dclarke@blastwave.org> a écrit :
>
> Basic C99 compile and then test suite run with result :
>
> beta $ cat test-suite.log
> FAIL: examples/c/mfcalc/mfcalc
> ==============================
>
> checking for diff --strip-trailing-cr...
> diff: illegal option -- strip-trailing-cr
> usage: diff [-bitw] [-c | -e | -f | -h | -n | -u] file1 file2
> diff [-bitw] [-C number | -U number] file1 file2
> diff [-bitw] [-D string] file1 file2
> diff [-bitw] [-c | -e | -f | -h | -n | -u] [-l] [-r] [-s] [-S
> name] directory1 directory2
> checking for diff --strip-trailing-cr...
> Looks like ye old diff gets upset at an option there.
That's not a problem. The test is actually checking whether it can use it or
not. Hence the "checking for diff --strip-trailing-cr...".
> mfcalc: PASS: 1
> mfcalc: PASS: 2
> mfcalc: PASS: 3
> mfcalc: FAIL: 4 (expected status: 0, effective: 139)
> ./examples/test: line 50: 7737 Segmentation Fault (core dumped)
> "$abs_medir/$me" "$@"
> mfcalc: PASS: 5
> FAIL examples/c/mfcalc/mfcalc.test (exit status: 1)
However, this is bad.
Actually I guess that only the tests from the examples were run, and not the
main test suite. So I guest if you run `make check-tests`, you'll get many
many failures.
If I'm not mistaken the fourth test of mfcalc is:
a = 256
sqrt (a)
I doubt that the problem is in the parser itself, I venture it's sqrt that does
not work properly. Let's try these inputs please:
echo 'a = 256' | ./examples/c/mfcalc/mfcalc
{ echo 'a = 256'; echo 'a+a'; } | ./examples/c/mfcalc/mfcalc
echo 'sqrt(256)' | ./examples/c/mfcalc/mfcalc
I expect the last one to fail. If it does, please compile (with the same flags
as the one used by Bison) and run this C program:
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
int main (void)
{
printf ("%f\n", sqrt (256.0));
}
If it does crash, then please try to see what needs to be done for it to work
properly.
> FAIL: examples/c/glr/c++-types
> ==============================
>
> c++-types: FAIL: 1 (expected status: 0, effective: 139)
> ./examples/test: line 50: 7949 Segmentation Fault (core dumped)
> "$abs_medir/$me" "$@"
> FAIL examples/c/glr/c++-types.test (exit status: 1)
Gee...
Could you please replace examples/c/glr/c++-types/c++-types.test with the
attached version, and run `make check-examples` again? It should help us see
which test case failed, and start tracking the failure.
Cheers!
c++-types.test
Description: Binary data
- Testsuite summary for GNU Bison 3.8.2 : FAIL 2, Dennis Clarke, 2021/10/05
- Re: Testsuite summary for GNU Bison 3.8.2 : FAIL 2,
Akim Demaille <=
- Re: Testsuite summary for GNU Bison 3.8.2 : FAIL 2, Dennis Clarke, 2021/10/12
- Re: Testsuite summary for GNU Bison 3.8.2 : FAIL 2, Akim Demaille, 2021/10/13
- Re: Testsuite summary for GNU Bison 3.8.2 : FAIL 2, Dennis Clarke, 2021/10/13
- Re: Testsuite summary for GNU Bison 3.8.2 : FAIL 2, Akim Demaille, 2021/10/13
- Re: Testsuite summary for GNU Bison 3.8.2 : FAIL 2, Dennis Clarke, 2021/10/13
- Re: Testsuite summary for GNU Bison 3.8.2 : FAIL 2, Akim Demaille, 2021/10/14
- Re: Testsuite summary for GNU Bison 3.8.2 : FAIL 2, Dennis Clarke, 2021/10/14
- Re: Testsuite summary for GNU Bison 3.8.2 : FAIL 2, Akim Demaille, 2021/10/19
- Re: Testsuite summary for GNU Bison 3.8.2 : FAIL 2, Dennis Clarke, 2021/10/20
- Re: Testsuite summary for GNU Bison 3.8.2 : FAIL 2, Akim Demaille, 2021/10/24