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

[PATCH v2 0/3] Update clar for improved integer handling

From
Patrick Steinhardt <ps@pks.im>
Date
Dec 6, 2025, 11:47 UTC
Message-ID
<20251206-b4-pks-clar-update-v2-0-9a14b10c1a36@pks.im>
In-Reply-To
<20251205-b4-pks-clar-update-v1-0-fd70aac2ab90@pks.im>
Hi,

this patch series updates clar. Most importantly, the update contains properly typed handling of integers as well as a set of new asserts that perform relative comparisons, like "less than" or "greater or equal".

Thanks!
Patrick
---
Changes in v2:
- EDITME: describe what is new in this series revision.
- EDITME: use bulletpoints and terse descriptions.
- Link to v1: https://lore.kernel.org/r/20251205-b4-pks-clar-update-v1-0-fd70aac2ab90@pks.im
---
Patrick Steinhardt (3):
      t/unit-tests: update clar to 39f11fe
      t/unit-tests: demonstrate use of integer comparison assertions
      gitattributes: disable blank-at-eof errors for clar test expectations
 .gitattributes                                     |   1 +
 t/unit-tests/clar/.github/workflows/ci.yml         |   2 +-
 t/unit-tests/clar/clar.c                           | 146 ++++++++++++++++++++-
 t/unit-tests/clar/clar.h                           |  82 +++++++++++-
 t/unit-tests/clar/clar/print.h                     |   2 +-
 t/unit-tests/clar/test/expected/quiet              |  40 +++++-
 .../clar/test/expected/summary_with_filename       |  42 +++++-
 .../clar/test/expected/summary_without_filename    |  42 +++++-
 t/unit-tests/clar/test/expected/tap                |  88 +++++++++++--
 t/unit-tests/clar/test/expected/without_arguments  |  42 +++++-
 t/unit-tests/clar/test/selftest.c                  |  10 +-
 t/unit-tests/clar/test/suites/combined.c           |  65 ++++++++-
 t/unit-tests/u-reftable-record.c                   |  22 ++--
 t/unit-tests/unit-test.h                           |   6 -
 14 files changed, 520 insertions(+), 70 deletions(-)
Range-diff versus v1:

1: 58f8836bde = 1: d709d75f25 t/unit-tests: update clar to 39f11fe 2: 1b4e93d5b4 = 2: 6b56ad714e t/unit-tests: demonstrate use of integer comparison assertions -: ---------- > 3: a1b6aec468 gitattributes: disable blank-at-eof errors for clar test expectations

--- base-commit: f0ef5b6d9bcc258e4cbef93839d1b7465d5212b9 change-id: 20251205-b4-pks-clar-update-4fb022908ced

Previous: Patrick SteinhardtNext: Patrick Steinhardt
Message 8 of 20 in “Update clar for improved integer handling”
  1. 0/2 Update clar for improved integer handlingPatrick Steinhardt, Dec 5, 2025
  2. 1/2 t/unit-tests: update clar to 39f11fePatrick Steinhardt, Dec 5, 2025
  3. Jeff KingDec 5, 2025
  4. Patrick SteinhardtDec 6, 2025
  5. Junio C HamanoDec 6, 2025
  6. Patrick SteinhardtDec 6, 2025
  7. 2/2 t/unit-tests: demonstrate use of integer comparison assertionsPatrick Steinhardt, Dec 5, 2025
  8. 0/3 Update clar for improved integer handlingPatrick Steinhardt, Dec 6, 2025
  9. 1/3 t/unit-tests: update clar to 39f11fePatrick Steinhardt, Dec 6, 2025
  10. Karthik NayakJan 6, 2026
  11. Patrick SteinhardtJan 6, 2026
  12. Karthik NayakJan 6, 2026
  13. Jeff KingJan 7, 2026
  14. Junio C HamanoJan 8, 2026
  15. 2/3 t/unit-tests: demonstrate use of integer comparison assertionsPatrick Steinhardt, Dec 6, 2025
  16. 3/3 gitattributes: disable blank-at-eof errors for clar test expectationsPatrick Steinhardt, Dec 6, 2025
  17. Karthik NayakJan 6, 2026
  18. Patrick SteinhardtJan 6, 2026
  19. Junio C HamanoJan 7, 2026
  20. Patrick SteinhardtJan 7, 2026

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.