23 Nov 2008 15:56
Re: verbose testsuite output contains 1M newlines
Eric Blake <ebb9 <at> byu.net>
2008-11-23 14:56:49 GMT
2008-11-23 14:56:49 GMT
[adding autoconf; this is an interesting question about autotest] According to Ralf Wildenhues on 11/23/2008 6:23 AM: > Hello Eric, Hi Ralf, > > running > make check-local TESTSUITEFLAGS=-v > > on M4 (git master) produces lots of output on GNU/Linux/bash. More > precisely, the AT_CHECK in builtins.at:470 causes 1024*1024 newlines > to be output, and I think there are more instances later. Can this > easily be avoided? Hmm, this particular test _has_ to generate more than a megabyte of output in order to trigger the code path in m4 being tested (namely, that m4 starts using temporary files after it collects enough in-memory diversion output). The problem stems from the fact that by default, when you specify [stdout] as the third argument to AT_CHECK, autotest emits code that both collects the file stdout (good) and copies the resulting file into the log (annoying), and when -v is in effect, tees that copy to the terminal (bad). I think the idea behind this decision was that testsuite.log should be self-contained, with everything needed to reproduce why a test failed. The point of specifying [stdout] is that we plan on processing the resulting output file later on, so maybe we should quit trying to copy the(Continue reading)
RSS Feed