bug-gnulib
[Top][All Lists]
Advanced

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

Re: vasnprintf, u*-vasnprintf: Support string arguments longer than 2 Gi


From: Bruno Haible
Subject: Re: vasnprintf, u*-vasnprintf: Support string arguments longer than 2 GiB
Date: Thu, 20 Jun 2024 01:39:43 +0200

Three more patches in this series:

1) Fix a small mistake that caused gcc warnings.
2) I measured the amount of RAM that the tests need:
     $ /usr/bin/time -f "Max RSS: %M KiB" ./test-...printf-big
   This is consistent with what I see by watching the process through "top".
3) vasnwprintf tests: Add test of %s directive with large arguments.
   This test passes without modifications to lib/vasnprintf.c. The
   corresponding code is in lines 3141..3628.


2024-06-19  Bruno Haible  <bruno@clisp.org>

        vasnwprintf tests: Add test of %s directive with large arguments.
        * tests/test-vasnwprintf-big.c: New file, based on
        tests/test-vasnprintf-big.c.
        * modules/vasnwprintf-extra-tests: New file.
        * modules/vasnwprintf-tests (Depends-on): Depend on it.

2024-06-19  Bruno Haible  <bruno@clisp.org>

        vasnprintf, u*-asnprintf tests: Adjust memory need.
        * tests/test-vasnprintf-big.c (main): Require 10, not 12, GiB of RAM.
        * tests/unistdio/test-u8-asnprintf-big.c (main): Require 15 GiB of RAM.
        * tests/unistdio/test-ulc-asnprintf-big.c (main): Likewise.

2024-06-19  Bruno Haible  <bruno@clisp.org>

        u8-asnprintf tests: Fix mistake.
        * tests/unistdio/test-u8-asnprintf-big.c: Include <unistr.h>.
        (main): Use u8_strlen instead of strlen.
        * modules/unistdio/u8-asnprintf-extra-tests (Depends-on): Add
        unistr/u8-strlen.

Attachment: 0001-u8-asnprintf-tests-Fix-mistake.patch
Description: Text Data

Attachment: 0002-vasnprintf-u-asnprintf-tests-Adjust-memory-need.patch
Description: Text Data

Attachment: 0003-vasnwprintf-tests-Add-test-of-s-directive-with-large.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]