Bill Allombert on Wed, 27 Dec 2023 17:46:30 +0100


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

Re: problems noted when running make bench


On Wed, Dec 27, 2023 at 10:57:35AM -0500, S wrote:
> On 12/26/23 02:56PM, Bill Allombert wrote:
> 
> > > > Maybe you have unexpected environment variables set.
> > > COLUMNS=85
> > This is this one.
> > 
> > Try this:
> > make bench COLUMNS=
> 
> I am happy to report that this work!
> 
> Just out of curiosity:  I wonder how would changing the column width leads
> to "bugs" like this in linear-sta.dif?

You quoted only half the diff!

What happens is that the line
[1.0000000000000000000000000000000000000 1.0806046117362794348018732148859532075]

becomes
[ 1.0000000000000000000000000000000000000   1.0806046117362794348018732148859532075]

because it is targeted to 85 characters output instead of 80.
but then the benchmark cut the line to 80 characters, so finally
the two lines in the original benchmark

[1 -1.2833494518006402717978106547571267252 0.283349451800640271797810654757
12672521]

becomes
[ 1  -1.2833494518006402717978106547571267252 0.2833494518006402717978106547
5712672521]

In any case, I have fixed src/test/dotest to unset COLUMNS to avoid this issue.

Cheers,
Bill.