git/list[1] front-page[2] threads[3] people[4] search[5] about
 

How to see raw output from 'make test'?

From
JWJeffrey Walton <noloader@gmail.com>
Date
Mar 7, 2019, 05:35 UTC
Message-ID
<CAH8yC8nP+bDQZXHbn+GdVsEEMRYzC45pViYOcB2_FpbYK4nmqQ@mail.gmail.com>
Hi Everyone,

I built Git 2.2.0 from sources. I added CFLAGS="-DNDEBUG -g2 -O1 -fsantize=undefined'. Then, a 'make test V=1'. The tests don't produce output. For example:

*** t0021-conversion.sh *** ok 1 - setup ok 2 - check ok 3 - expanded_in_repo ok 4 - filter shell-escaped filenames ok 5 - required filter should filter data ok 6 - required filter smudge failure ok 7 - required filter clean failure ok 8 - filtering large input to small output should use little memory ok 9 - filter that does not read is fine

Yet when I grep for 'runtime error' I am getting some hits for undefined behavior:

git-2.21.0$ grep -IR 'runtime error' t/trash directory.t0021-conversion/err:sha1dc/sha1.c:392:2: runtime error: load of misaligned address 0x000002d7d1d5 for type 'const uint32_t', which requires 4 byte alignment t/trash directory.t0021-conversion/err:sha1dc/sha1.c:397:2: runtime error: load of misaligned address 0x000002d7d1d5 for type 'const uint32_t', which requires 4 byte alignment t/trash directory.t0021-conversion/err:sha1dc/sha1.c:402:2: runtime error: load of misaligned address 0x000002d7d1d5 for type 'const uint32_t', which requires 4 byte alignment t/trash directory.t0021-conversion/err:sha1dc/sha1.c:407:2: runtime error: load of misaligned address 0x000002d7d1d5 for type 'const uint32_t', which requires 4 byte alignment ...

How do I get the full output from 'make test'?
Thanks in advance.
Next: Jeff King
Message 1 of 2 in “How to see raw output from 'make test'?”
  1. Jeffrey WaltonMar 7, 2019
  2. Jeff KingMar 7, 2019

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.